X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=assistants%2Fstore-single.inc.php;h=5e18f5941fbd24c8448572c2670413acfa8d34dd;hb=bf9a965cbe1a779ffebbe2251c1ebb4690067e51;hp=04bf68443c4ec5fec79c096576355bd8f1dbb618;hpb=bda4a4becc889f5acd8d6a4736cad0e57d0f3bfc;p=mirrors%2FSokoMan.git diff --git a/assistants/store-single.inc.php b/assistants/store-single.inc.php index 04bf684..5e18f59 100644 --- a/assistants/store-single.inc.php +++ b/assistants/store-single.inc.php @@ -1,11 +1,10 @@ process_http_request_post('new', false, false, 'assistant/store-single/2'); -switch($step) { +$this->process_http_request_post('new', false, false, "$URL_INTERNAL/2"); +switch($SUBPATH[0]) { default: case 1: echo $this->render_form_add('model'); break; - case 2: + case 2: //TODO: reuse assistants/store for this step $model_id = trim($_GET['last']); $columns = $this->db->get_columns('item'); $selectbox = $this->db->columns_get_selectbox($columns, 'item'); @@ -13,7 +12,8 @@ switch($step) { $current = array(array( 'model_id' => $model_id, 'item_quantity' => 1, - 'status_id' => 1 + 'status_id' => 1, + 'item_author' => $this->db->auth->get_user_id() )); $action = $_SERVER['SCRIPT_NAME'].'/item/new';