From e521cc60866ae9275641bd5e65a947b71e5fc58b Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Tue, 29 Nov 2016 17:17:06 +0100 Subject: [PATCH] AbstractBuildForm.php, Constants.php: Neue Konstante eingefuehrt. --- extension/qfq/qfq/AbstractBuildForm.php | 3 ++- extension/qfq/qfq/Constants.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extension/qfq/qfq/AbstractBuildForm.php b/extension/qfq/qfq/AbstractBuildForm.php index 48622b410..7ca19a8d6 100644 --- a/extension/qfq/qfq/AbstractBuildForm.php +++ b/extension/qfq/qfq/AbstractBuildForm.php @@ -343,7 +343,7 @@ abstract class AbstractBuildForm { // get current data record if ($recordId > 0 && $this->store->getVar('id', STORE_RECORD) === false) { - $row = $this->db->sql("SELECT * FROM " . $this->formSpec[F_TABLE_NAME] . " WHERE id = ?", ROW_EXPECT_1, array($recordId)); + $row = $this->db->sql("SELECT * FROM " . $this->formSpec[F_TABLE_NAME] . " WHERE id = ?", ROW_EXPECT_1, array($recordId), "Form '" . $this->formSpec[F_NAME] . "' failed to load record '$recordId' from table '" . $this->formSpec[F_TABLE_NAME] . "'."); $this->store->setVarArray($row, STORE_RECORD); } @@ -1255,6 +1255,7 @@ abstract class AbstractBuildForm { $br = ''; $html = $this->buildNativeHidden($htmlFormElementId, $value); + for ($ii = 0; $ii < count($itemValue); $ii++) { $jj++; $attribute = $attributeBase; // diff --git a/extension/qfq/qfq/Constants.php b/extension/qfq/qfq/Constants.php index d8d4c6de4..249f9894c 100644 --- a/extension/qfq/qfq/Constants.php +++ b/extension/qfq/qfq/Constants.php @@ -431,6 +431,7 @@ const GLYPH_ICON_CHECK = 'glyphicon-ok'; const GLYPH_ICON_CLOSE = 'glyphicon-remove'; // FORM +const F_NAME = 'name'; const F_TABLE_NAME = 'tableName'; const F_REQUIRED_PARAMETER = 'requiredParameter'; -- GitLab