Commit a064c405 authored by Carsten  Rose's avatar Carsten Rose
Browse files

FormAction.php, QuickFormQuery.php: fixed new implemented error - calling...

FormAction.php, QuickFormQuery.php: fixed new implemented error - calling 'Evaluate->parse()' with ROW_EXPECT_0_1 returns only an array, not an array of arrays.
parent dea12d61
......@@ -907,7 +907,7 @@ class QuickFormQuery {
if (!empty($fillStoreVar)) {
$rows = $this->eval->parse($fillStoreVar, ROW_EXPECT_0_1);
if (is_array($rows)) {
$this->store->appendToStore($rows[0], STORE_VAR);
$this->store->appendToStore($rows, STORE_VAR);
// LOG
!empty($form[FORM_LOG_ACTIVE]) && Logger::logFormLine($form, "F:add to STORE_VAR", $rows[0]);
} else {
......
......@@ -104,7 +104,7 @@ class FormAction {
$this->store->setVar(SYSTEM_FORM_ELEMENT_COLUMN, FE_FILL_STORE_VAR, STORE_SYSTEM); // debug
$rows = $this->evaluate->parse($fe[FE_FILL_STORE_VAR], ROW_EXPECT_0_1);
if (is_array($rows)) {
$this->store->appendToStore($rows[0], STORE_VAR);
$this->store->appendToStore($rows, STORE_VAR);
} else {
if (!empty($rows)) {
throw new UserFormException(json_encode(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment