You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 25, 2022. It is now read-only.
So I have a model that has a hasOne() reference some other model.
If I create a form or use crud (edit/add window) with this model, the following error appears:
AbstractObject.php:459]Illegal offset type in isset or empty
I'm using branch 4.4
Investigating it the problem is with the Dropdown field or more precisely with getValueList() function in lib/Form/Field/ValueList.php:113
The title cannot be determined correctly here:
$title = $this->model->getElement($this->model->title_field);
Quickly reverting this line back to the one in 4.3, it works fine:
$title = $this->model->getTitleField();
So I have a model that has a hasOne() reference some other model.
If I create a form or use crud (edit/add window) with this model, the following error appears:
I'm using branch 4.4
Investigating it the problem is with the Dropdown field or more precisely with getValueList() function in lib/Form/Field/ValueList.php:113
The title cannot be determined correctly here:
$title = $this->model->getElement($this->model->title_field);
Quickly reverting this line back to the one in 4.3, it works fine:
$title = $this->model->getTitleField();
Also issue 741 could be related to this one.
I could create a pull request, but the thing is that I'm not sure why this change was made in first place.
The text was updated successfully, but these errors were encountered: