From: Nicolas Boisselier Date: Tue, 6 Mar 2018 04:07:37 +0000 (+0000) Subject: lib/php/db/table.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=e383eb09c569bbe4dc5e3f8e1976ef2afe5696f0;p=nb.git lib/php/db/table.php --- diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 9f3eea6f..8eabaacf 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -604,7 +604,7 @@ Class Table extends nb { } // Form - echo '
'.NB_EOL; + echo ''.NB_EOL; echo '
'.NB_EOL; if ($add or $row) { @@ -1132,6 +1132,7 @@ Class Table extends nb { if (!$nosql) $this->create_temporary(); list($sql,$where,$limit,$select_count) = $this->rows_sql($opt); + $fct_rows_prepare = null; if ($nosql) { $sql = empty($this->sql) ? $this->name : $this->sql; @@ -2045,6 +2046,9 @@ Class Table extends nb { } elseif ($action == 'edit') { return $this->html_edit(); + } elseif ($action == 'add') { + return $this->html_edit(null,'?',true); + } elseif ($this->p('table')) { # NB 17.03.16 } else { $this->pdef('limit','20');