From e383eb09c569bbe4dc5e3f8e1976ef2afe5696f0 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 6 Mar 2018 04:07:37 +0000 Subject: [PATCH] lib/php/db/table.php --- lib/php/db/table.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'); -- 2.47.3