From af6ae18de08fdcbbe6a371f6ccd78ecaf6af6001 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Wed, 19 Dec 2012 20:54:26 +0100 Subject: [PATCH] Defaultne skryvat z eshopu --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 67f3843..bb5bb5e 100755 --- a/index.php +++ b/index.php @@ -938,13 +938,17 @@ class Sklad_UI { function render_form_add($class) { $columns = $this->db->get_columns($class); $selectbox = $this->db->columns_get_selectbox($columns, $class); - return $this->html->render_insert_form($class, $columns, $selectbox); + $current=array('default'=>array( + 'model_eshop_hide'=>1 + )); + return $this->html->render_insert_form($class, $columns, $selectbox, $current); } function render_form_edit($class, $id, $multi_insert) { $columns = $this->db->get_columns($class); $selectbox = $this->db->columns_get_selectbox($columns, $class); $current = $this->db->get_listing($class, $id, 1); + //echo('
');print_r($current);die();
 		return $this->html->render_insert_form($class, $columns, $selectbox, $current, false, false, $multi_insert);
 	}
 
-- 
2.30.2