<?php
+die(T('Hors service!'));
$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');
$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';