Vylepseno (zjednoduseno) rozhrani pro assistanty
[mirrors/SokoMan.git] / assistants / dispose.inc.php
index d95dab4631bfc407cdb472007b8adb1a8d2e31ae..691b258665fc6af99b5081c25bfcaf1bb3e956c9 100644 (file)
@@ -1,10 +1,9 @@
 <?php
-$script = $_SERVER['SCRIPT_NAME'].'/assistant/dispose';
-switch($step) {
+switch($SUBPATH[0]) {
        default: case 1:
 ?>
-<form action="<?=$script?>/2" method="GET">
-       item_serial: <input type="text" name="serial" />
+<form action="<?=$URL?>/2" method="GET">
+       item_serial: <input type="text" name="serial" autofocus />
        <input type="submit" value="DISPOSE" />
 </form>
 <?php
@@ -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.106097 seconds and 4 git commands to generate.