Align UserPreferencesModel with SettingsModel

This commit is contained in:
Sam Georges 2014-07-17 18:02:59 +10:00
parent a7fa3533fd
commit e09c74b11e
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,7 @@
* **Build 124** (2014-07-17)
- Improvements to Twig functions and filters.
- URL, HTML and Form helpers are now available in Twig.
* **Build 122** (2014-07-15)
- Restyled the CMS tabs

View File

@ -70,9 +70,6 @@ class UserPreferencesModel extends SettingsModel
*/
public function beforeModelSave()
{
// Purge the field values from the attributes
$this->model->attributes = array_diff_key($this->model->attributes, $this->fieldValues);
$preferences = UserPreferences::forUser();
list($namespace, $group, $item) = $preferences->parseKey($this->recordCode);
$this->model->item = $item;