Fix Fatal error: Call to a member function toOptionArray() on a non-object
replace
with
if ( is_object($sourceModel) ) {
$field->setValues($sourceModel->toOptionArray($fieldType == 'multiselect') );
}
replace
$optionArray = $sourceModel->toOptionArray($fieldType == ‘multiselect’);
with
if ( is_object($sourceModel) ) {
$field->setValues($sourceModel->toOptionArray($fieldType == 'multiselect') );
}
Comments
Post a Comment