Merged bugfixes upto [0000072] (version 2.0.3).
[fa-stable.git] / purchasing / allocations / supplier_allocation_main.php
index 55e32abb14809ffb99b55c6f06392e8cb9bc874c..7f63cb6f33aa14c766a4335f46162d7b3d0c8877 100644 (file)
@@ -15,6 +15,15 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 page(_("Supplier Allocations"), false, false, "", $js);
 
+//--------------------------------------------------------------------------------
+if ($ret = context_restore()) {
+       if(isset($ret['supplier_id']))
+               $_POST['supplier_id'] = $ret['supplier_id'];
+}
+if (isset($_POST['_supplier_id_editor'])) {
+       context_call($path_to_root.'/purchasing/manage/suppliers.php?supplier_id='.$_POST['supplier_id'] );
+}
+
 //--------------------------------------------------------------------------------
 
 function display_allocatable_transactions()