From c7522734afe72281c9238aa90b5bc5a6c6624123 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 23 Oct 2017 15:52:51 +0100 Subject: [PATCH] lib/php/db/table.php --- lib/php/db/table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3