akeeba / fof

Rapid Application Development framework for Joomla!™ 3 and 4
0 stars 0 forks source link

Undefined property: stdClass::$Null #617

Closed mikeazores closed 8 years ago

mikeazores commented 8 years ago

I'm running todo-fof-example on my localhost machine running Joomla 3.5, PHP 5.6 and FOF 3.0.11.

When I edit an item in the backend I'm getting:

Notice: Undefined property: stdClass::$Null in /libraries/fof30/Model/DataModel.php on line 1376

nikosdion commented 8 years ago

This only happens if you add a known field manually without setting its Null property to "YES". The problem lies in DataModel::addKnownField which doesn't do that and of course in DataModel::check() which doesn't expect this field to be missing. Good catch!