From: Nicolas Boisselier Date: Mon, 23 Oct 2017 14:52:51 +0000 (+0100) Subject: lib/php/db/table.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=c7522734afe72281c9238aa90b5bc5a6c6624123;p=nb.git lib/php/db/table.php --- diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 5041d0d5..82b988d7 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1633,8 +1633,6 @@ Class Table extends nb { foreach ($this->fields() as $name => $field) { - $value = $post[$this->field_preff.$name]; - if ($field->key) { $keys[] = $name; @@ -1655,6 +1653,8 @@ Class Table extends nb { } } else { + $value = $post[$this->field_preff.$name]; + $fields[] = $name; $fields_values[] = $value;