Pridano klikatko na nastavovani pocitatelnosti modelu
authorThomas Mudrunka <tomas@mudrunka.cz>
Tue, 25 Oct 2011 11:33:36 +0000 (13:33 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Tue, 25 Oct 2011 11:38:30 +0000 (13:38 +0200)
index.php
locale/cs/messages.inc.php

index 6e834fe54d872186804285b6598b5b5fbc6f1ac3..59156ab60c20b5acf77a98b186c12e3c75daf26a 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -575,7 +575,9 @@ class Sklad_DB extends PDO {
        }
 
        function columns_get_selectbox($columns, $class=false, $suffix_id='_id', $suffix_name='_name') {
-               $selectbox=array();
+               $selectbox=array( //TODO: Hardcoded...
+                       'model_countable' => array(0 => 'no', 1 => 'yes')
+               );
                foreach($columns as $column) {
                        if($column['Field'] == 'user_id') continue; //TODO HACK Blacklist: tabulka nemusi obsahovat *_name!!! momentalne se to tyka jen tabulky user (a item - u ty to nevadi)!
                        if($class && $column['Field'] == $class.$suffix_id) continue;
index e9cf7afc330cf21ebda569cb0002958ff7a725a7..614e7a391c1229c058eb3f27812f8d6d5edeef3d 100644 (file)
@@ -28,7 +28,7 @@ $LOCALE_MESSAGES = array(
                'model_barcode:' => 'Čárový kód modelu:',
                'model_price_in' => 'Předpokládaná cena',
                'model_price_out' => 'Doporučená cena',
-               'model_countable' => 'Model má sériová č. (0=ne,1=ano)',
+               'model_countable' => 'Model má sériová č.',
 
                'room_name' => 'Sklad',
                'room_descript' => 'Popis skladu',
This page took 0.134342 seconds and 4 git commands to generate.