summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/index.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-08-02 14:49:25 +0930
committerPhil Davis <phil.davis@inf.org>2016-08-02 14:49:25 +0930
commit2b7d0520818248920ec88514fde2c9b86c2a70af (patch)
tree3ea8d6abb23ddbba4820a1f2f9a1ecd85a3a747e /src/usr/local/www/index.php
parent236e6a54e9a93284ca170b68aa1188dfaa195c3d (diff)
downloadpfsense-2b7d0520818248920ec88514fde2c9b86c2a70af.zip
pfsense-2b7d0520818248920ec88514fde2c9b86c2a70af.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.
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r--src/usr/local/www/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index 808b1df..90e1187 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -122,8 +122,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'], ',');
OpenPOWER on IntegriCloud