Vylepseno (zjednoduseno) rozhrani pro assistanty
[mirrors/SokoMan.git] / assistants / dispose.inc.php
index 735c3fdab344c196b77229798a3edcd0e72ae67b..691b258665fc6af99b5081c25bfcaf1bb3e956c9 100644 (file)
@@ -1,9 +1,8 @@
 <?php
-$script = $_SERVER['SCRIPT_NAME'].'/assistant/dispose';
-switch($step) {
+switch($SUBPATH[0]) {
        default: case 1:
 ?>
-<form action="<?=$script?>/2" method="GET">
+<form action="<?=$URL?>/2" method="GET">
        item_serial: <input type="text" name="serial" autofocus />
        <input type="submit" value="DISPOSE" />
 </form>
@@ -16,6 +15,7 @@ switch($step) {
 
                $current = $this->db->get_listing('item', $item_id, 1);
                $current[$item_id]['status_id'] = 2;
+               $current[$item_id]['item_customer'] = 0;
 
                $action = $_SERVER['SCRIPT_NAME']."/item/$item_id/edit";
     echo $this->html->render_insert_form('item', $columns, $selectbox, $current, false, $action);
This page took 0.09321 seconds and 4 git commands to generate.