From: Devops Date: Thu, 13 Apr 2017 10:06:51 +0000 (+0100) Subject: lib/php/db/table.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=82803c8bb54cde80d17e895264847bb5e959ea5b;p=nb.git lib/php/db/table.php --- diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 2de15f0c..66149207 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1420,7 +1420,7 @@ Class Table extends nb { # NB 27.12.16 $this->__rows_table_keys = []; foreach ($fields as $name => $f) { $this->__rows_table_attr[$name] = '' - . ' class="' . $name . ($f->key?' key':'') . (isset($this->extras[$name])?' extra':'') . '"' + . ' class="' . $name . ($f->key?' key':'') . (isset($this->extras[$name])?' extra':'') . ' ' . preg_replace('/\W.*$/','',$f->type).'"' ; # NB 27.12.16 if ($f->key) $this->__rows_table_keys[] = $name; }