On the fly editing (F2, F3 and F4) fix.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 29 Oct 2017 09:51:03 +0000 (10:51 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 29 Oct 2017 09:51:03 +0000 (10:51 +0100)
purchasing/manage/suppliers.php
sales/manage/customers.php

index 8999fd2a2200ff416ccd2e20db8ff5e9c694b5dc..4c127b7e004eb29ecbbfbd365a8190f272373a5a 100644 (file)
@@ -167,6 +167,7 @@ function supplier_settings(&$supplier_id)
        end_outer_table(1);
 
        div_start('controls');
+       if (@$_REQUEST['popup']) hidden('popup', 1);
        if ($supplier_id) 
        {
                submit_center_first('submit', _("Update Supplier"), 
@@ -278,6 +279,7 @@ elseif (isset($_POST['delete']) && $_POST['delete'] != "")
                unset($_SESSION['supplier_id']);
                $supplier_id = '';
                $Ajax->activate('_page_body');
+               display_notification("#" . $_POST['supplier_id'] . " " . _("Supplier has been deleted."));
        } //end if Delete supplier
 }
 
index d00bfdc04390a90c42fae5f52886c5bf5c3d8e04..3810e2b4f2c271a0688ce61d4056c57d9d0a05e0 100644 (file)
@@ -301,6 +301,7 @@ function customer_settings($selected_id)
        end_outer_table(1);
 
        div_start('controls');
+       if (@$_REQUEST['popup']) hidden('popup', 1);
        if (!$selected_id)
        {
                submit_center('submit', _("Add New Customer"), true, '', 'default');