User tests: Successful: Unsuccessful:
Fix Invalid argument supplied for foreach() in \libraries\src\Form\FormField.php on line 1134 by checking that it is an array.
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
It may be both, object or array
maybe try !is_scalar($value)
for subform it may enough to check the value exists:
if ($this->multiple && $value)
| Labels |
Added:
?
|
||
I have tested this item
I have tested this item
| Status | Pending | ⇒ | Ready to Commit |
RTC
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-01-21 11:49:01 |
| Closed_By | ⇒ | wilsonge | |
| Labels |
Added:
?
|
||
Thanks!
Looks like
$valueis normally an object, not an array.