From: Joe Hunt Date: Sat, 21 May 2011 09:25:26 +0000 (+0200) Subject: 0000824: Quick Entries. Problems with latest MySql release. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ada6a0495f78e45c6f5255efbc3d020f738e097d;p=fa-stable.git 0000824: Quick Entries. Problems with latest MySql release. --- diff --git a/gl/manage/gl_quick_entries.php b/gl/manage/gl_quick_entries.php index 6bd142f6..c149c70b 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';