Skip to content

Commit

Permalink
Make sure consolidate value is not serialized
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Jun 5, 2017
1 parent 825a507 commit 74ed1c0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions extension.driver.php
Expand Up @@ -124,6 +124,11 @@ public function getSubscribedDelegates(){
'delegate' => 'AddCustomPreferenceFieldsets',
'callback' => 'dAddCustomPreferenceFieldsets'
),
array(
'page' => '/system/preferences/',
'delegate' => 'Save',
'callback' => 'dSave'
),
array(
'page' => '/extensions/frontend_localisation/',
'delegate' => 'FLSavePreferences',
Expand Down Expand Up @@ -156,6 +161,16 @@ public function dAddCustomPreferenceFieldsets($context){
$context['wrapper']->appendChild($group);
}

/**
* Edits the preferences to be saved
*
* @param array $context
*/
public function dSave($context) {
// prevent the saving of the values
unset($context['settings'][MIU_GROUP]);
}

/**
* Save options from Preferences page
*
Expand Down

0 comments on commit 74ed1c0

Please sign in to comment.