Quick Entries: fixed false warning.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 10 Jan 2019 17:00:25 +0000 (18:00 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 10 Jan 2019 17:00:25 +0000 (18:00 +0100)
gl/manage/gl_quick_entries.php

index 1b9142d33e6130e24da965982742cb1a98da2da5..4983ae40ec604bda2ebe8a3eadb2069321744e62 100644 (file)
@@ -124,13 +124,13 @@ if ($Mode2=='ADD_ITEM2' || $Mode2=='UPDATE_ITEM2')
        elseif ($selected_id2 != -1) 
        {
                update_quick_entry_line($selected_id2, $selected_id, $_POST['actn'], $_POST['dest_id'], input_num('amount', 0), 
-                       $_POST['dimension_id'], $_POST['dimension2_id'], $_POST['memo']);
+                       $_POST['dimension_id'], $_POST['dimension2_id'], get_post('memo'));
                display_notification(_('Selected quick entry line has been updated'));
        } 
        else 
        {
                add_quick_entry_line($selected_id, $_POST['actn'], $_POST['dest_id'], input_num('amount', 0), 
-                       $_POST['dimension_id'], $_POST['dimension2_id'], $_POST['memo']);
+                       $_POST['dimension_id'], $_POST['dimension2_id'], get_post('memo'));
                display_notification(_('New quick entry line has been added'));
        }
        $Mode2 = 'RESET2';