diff --git a/extension/qfq/qfq/AbstractBuildForm.php b/extension/qfq/qfq/AbstractBuildForm.php index 48622b410f3e760d717dbafbd20cbcb5625afb45..7ca19a8d6988cdd5f555ec302cb0fbb371cea4d7 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 d8d4c6de42b019df4be0c924cd663ab06559bc34..249f9894c0db9ae82d72b7c373dac6902323e836 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';