When saving data using the Jelly_Model::save() method, field filters don't have any effect on the database. They get applied using validate()on jelly/model/core.php:414:
// Run validation
$data = $this->validate($data);
But $data isn't used in the foreach loop on line 422:
foreach ($this->_changed + $this->_original as $column => $value)
A possible fix for this issue is to use $data in the foreach loop:
foreach ($data as $column => $value)
With this fix the data saved in the database has the field filters applied. $data is already set correctly on line 398:
When saving data using the
Jelly_Model::save()
method, field filters don't have any effect on the database. They get applied usingvalidate()
onjelly/model/core.php:414
:But
$data
isn't used in the foreach loop on line 422:A possible fix for this issue is to use
$data
in the foreach loop:With this fix the data saved in the database has the field filters applied.
$data
is already set correctly on line 398: