diff options
author | Phil Davis <phil.davis@inf.org> | 2016-08-02 14:49:25 +0930 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-08-03 07:46:37 -0400 |
commit | be59d667c9da4e294da591cfedd8cede3c2ea913 (patch) | |
tree | 104fbc989c8457b22147749d6d30417b6195d78e /src/usr/local/www/index.php | |
parent | 21915c632c9d1645003fe3121cb7607d14408e7e (diff) | |
download | pfsense-be59d667c9da4e294da591cfedd8cede3c2ea913.zip pfsense-be59d667c9da4e294da591cfedd8cede3c2ea913.tar.gz |
Save widget settings per user
For users that have "custom settings" enabled, save the "tool" settings
of their widgets on a per-user basis.
User that do not have "custom settings" enabled will continue to use and
save widget settings to/from the system-wide settings.
(cherry picked from commit 2b7d0520818248920ec88514fde2c9b86c2a70af)
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r-- | src/usr/local/www/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 63682db..d9c2800 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -154,8 +154,8 @@ if (!is_array($config['widgets'])) { if ($_POST && $_POST['sequence']) { - // Read in the existing widget settings - $widget_settings = $config['widgets']; + // Start with the user's widget settings. + $widget_settings = $user_settings['widgets']; $widget_settings['sequence'] = rtrim($_POST['sequence'], ','); |