Statistiky zvracejici prazdne vysledky jsou schovany
[mirrors/SokoMan.git] / assistants / store-single.inc.php
index dc550b8247b3b099344459f5872b2de4131b4648..5e18f5941fbd24c8448572c2670413acfa8d34dd 100644 (file)
@@ -4,7 +4,7 @@ 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 +12,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';
This page took 0.097501 seconds and 4 git commands to generate.