if (isset($_POST['ADD_ITEM']) || isset($_POST['UPDATE_ITEM']))
{
-
+ if (!isset($_POST['dimension_tags']))
+ $_POST['dimension_tags'] = array();
+
if (can_process())
{
if ($selected_id == -1)
{
-
$id = add_dimension($_POST['ref'], $_POST['name'], $_POST['type_'], $_POST['date_'], $_POST['due_date'], $_POST['memo_']);
add_tag_associations($id, $_POST['dimension_tags']);
-
meta_forward($_SERVER['PHP_SELF'], "AddedID=$id");
}
else
if ($accounts_alpha == 2)
$_POST['account_code'] = strtoupper($_POST['account_code']);
+ if (!isset($_POST['account_tags']))
+ $_POST['account_tags'] = array();
+
if ($selected_account)
{
if (update_gl_account($_POST['account_code'], $_POST['account_name'],