Defaultne skryvat z eshopu
authorThomas Mudrunka <tomas@mudrunka.cz>
Wed, 19 Dec 2012 19:54:26 +0000 (20:54 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Wed, 19 Dec 2012 19:54:26 +0000 (20:54 +0100)
index.php

index 67f38433d2d94180567ac6d3767feaae392471d0..bb5bb5e42868b4cb4a4671973e3553fa880de06e 100755 (executable)
--- 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('<pre>');print_r($current);die();
                return $this->html->render_insert_form($class, $columns, $selectbox, $current, false, false, $multi_insert);
        }
 
This page took 0.151486 seconds and 4 git commands to generate.