X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fsales_ui.inc;h=49232d81a8a3ca926f89ad1b3dcf1b2920a74a7a;hb=9a98bb3bc7a94f1a8e47f8dab45a87c8b4212080;hp=1c1ebbf978f81ae3403c812502c3ec7206dd535a;hpb=818719f38b8327cdca616d58b13913dbd174d96a;p=fa-stable.git diff --git a/sales/includes/sales_ui.inc b/sales/includes/sales_ui.inc index 1c1ebbf9..49232d81 100644 --- a/sales/includes/sales_ui.inc +++ b/sales/includes/sales_ui.inc @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ include_once($path_to_root . "/includes/date_functions.inc"); @@ -19,12 +19,14 @@ include_once($path_to_root . "/includes/banking.inc"); // function processing_start() { + page_processing(false); processing_end(); $_SESSION['Processing'] = $_SERVER['PHP_SELF']; } function processing_end() { + page_processing(true); unset($_SESSION['Processing']); if ( isset($_SESSION['Items']) ) { unset($_SESSION['Items']->line_items); @@ -43,8 +45,8 @@ function processing_active() function check_edit_conflicts($cartname='Items') { global $Ajax; - - if (isset($_POST['cart_id']) && $_POST['cart_id'] != $_SESSION[$cartname]->cart_id) { + + if (get_post('cart_id') && $_POST['cart_id'] != $_SESSION[$cartname]->cart_id) { display_error(_('This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once.')); $Ajax->activate('_page_body'); display_footer_exit();