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

Fixes #7671. On FormElements, 'fillStoreVar' is now detected and fired at first

parent c737f287
Pipeline #1363 passed with stage
in 2 minutes and 20 seconds
......@@ -87,6 +87,16 @@ class Evaluate {
public function parseArray($tokenArray, array $skip = array(), &$debugStack = array()) {
$arr = array();
// In case there is an Element 'fillStoreVar', process that first.
if(!empty($tokenArray[FE_FILL_STORE_VAR]) && is_string($tokenArray[FE_FILL_STORE_VAR])){
$arr=$this->parse($tokenArray[FE_FILL_STORE_VAR], ROW_REGULAR, 0, $debugStack);
if(!empty($arr)){
$this->store::setStore($arr[0],STORE_VAR);
}
unset($tokenArray[FE_FILL_STORE_VAR]);
}
foreach ($tokenArray as $key => $value) {
if (array_search($key, $skip) !== false) {
......
Markdown is supported
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