From 360101246e7527e7741a220fcbfbebbd86e39f6d Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sat, 21 May 2011 11:25:26 +0200 Subject: [PATCH] 0000824: Quick Entries. Problems with latest MySql release. --- gl/manage/gl_quick_entries.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl/manage/gl_quick_entries.php b/gl/manage/gl_quick_entries.php index 6bd142f..c149c70 100644 --- a/gl/manage/gl_quick_entries.php +++ b/gl/manage/gl_quick_entries.php @@ -102,13 +102,13 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') if ($selected_id != -1) { update_quick_entry($selected_id, $_POST['description'], $_POST['type'], - input_num('base_amount'), $_POST['base_desc'], get_post('bal_type')); + input_num('base_amount'), $_POST['base_desc'], get_post('bal_type', 0)); display_notification(_('Selected quick entry has been updated')); } else { add_quick_entry($_POST['description'], $_POST['type'], - input_num('base_amount'), $_POST['base_desc'], get_post('bal_type')); + input_num('base_amount'), $_POST['base_desc'], get_post('bal_type', 0)); display_notification(_('New quick entry has been added')); } $Mode = 'RESET'; -- 2.30.2