Software Upgrade (re-read of current user needed)
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 4 Feb 2009 10:07:55 +0000 (10:07 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 4 Feb 2009 10:07:55 +0000 (10:07 +0000)
CHANGELOG.txt
admin/inst_upgrade.php

index d0497ff091a0637592c2a109ce376a8164cff5fb..02c0a0838232d3b90e2d2885b094f612ebd13912 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+04-Feb-2009 Joe Hunt
+# Software Upgrade (re-read of current user needed)
+$ /admin/inst_upgrade.php
+
 03-Feb-2009 Joe Hunt
 ! install/index.php link to AGPL license
 $ /install/index.php
index 63a71c5371f4bfd674224f6a4682a127eca6da4d..2946c79d1e65d1037af1ee8abbf29e2a11d8e749 100644 (file)
@@ -156,7 +156,13 @@ if (get_post('Upgrade'))
                if (!$ret) break;
        }
        if($ret)
+       {       // re-read the prefs
+               global $path_to_root;
+               include_once($path_to_root . "/admin/db/users_db.inc");
+               $user = get_user($_SESSION["wa_current_user"]->username);
+               $_SESSION["wa_current_user"]->prefs = new user_prefs($user);
                display_notification(_('All companies data has been successfully updated'));
+       }       
        $Ajax->activate('_page_body');
 }