[Rt-commit] rt branch, 3.999-trunk, updated. 965cabb80f313a9339eab74cba3a29f365dc6403
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Wed Nov 18 00:21:29 EST 2009
The branch, 3.999-trunk has been updated
via 965cabb80f313a9339eab74cba3a29f365dc6403 (commit)
from f131f753b719fe3eb9dc272bf4350bdb917aa594 (commit)
Summary of changes:
lib/RT/Action/UserSettings.pm | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 965cabb80f313a9339eab74cba3a29f365dc6403
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Nov 18 13:20:58 2009 +0800
fix for UserSettings action
diff --git a/lib/RT/Action/UserSettings.pm b/lib/RT/Action/UserSettings.pm
index f54c141..286be22 100644
--- a/lib/RT/Action/UserSettings.pm
+++ b/lib/RT/Action/UserSettings.pm
@@ -191,9 +191,12 @@ sub take_action {
my $pref = $user->preferences( RT->system ) || {};
for my $arg ( $self->argument_names ) {
if ( $self->has_argument($arg) ) {
- delete $pref->{$arg}
- if $self->argument_value($arg) eq 'use_system_default';
- $pref->{$arg} = $self->argument_value($arg);
+ if ( $self->argument_value($arg) eq 'use_system_default' ) {
+ delete $pref->{$arg};
+ }
+ else {
+ $pref->{$arg} = $self->argument_value($arg);
+ }
}
}
$user->set_preferences( RT->system, $pref );
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list