
sunnavy at bestpractical
Nov 17, 2009, 9:21 PM
Post #1 of 1
(278 views)
Permalink
|
|
rt branch, 3.999-trunk, updated. 965cabb80f313a9339eab74cba3a29f365dc6403
|
|
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> 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 ); ----------------------------------------------------------------------- _______________________________________________ Rt-commit mailing list Rt-commit [at] lists http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit
|