X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=assistants%2Fstore-single.inc.php;h=c7c5d2e96902c97cf1d04b3e6b2f6abade442ef0;hb=55f254c03684e67ef7c26e2157e3312f7836f86c;hp=dc550b8247b3b099344459f5872b2de4131b4648;hpb=de77377e6fd58f2680074a5cf0b14494813d07ad;p=mirrors%2FSokoMan.git diff --git a/assistants/store-single.inc.php b/assistants/store-single.inc.php index dc550b8..c7c5d2e 100644 --- a/assistants/store-single.inc.php +++ b/assistants/store-single.inc.php @@ -1,10 +1,11 @@ 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'); @@ -12,7 +13,8 @@ switch($SUBPATH[0]) { $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';