Align UserPreferencesModel with SettingsModel
This commit is contained in:
parent
a7fa3533fd
commit
e09c74b11e
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue