[Rt-commit] rt branch, 3.999-trunk, updated. 327f511ad9ed100aa1efa43562321ec9d3f4a0ea
? sunnavy
sunnavy at bestpractical.com
Tue Apr 6 04:29:14 EDT 2010
The branch, 3.999-trunk has been updated
via 327f511ad9ed100aa1efa43562321ec9d3f4a0ea (commit)
from 055c61a865f2eaf8b80e3e24dd2901339e31fa79 (commit)
Summary of changes:
lib/RT/Dispatcher.pm | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 327f511ad9ed100aa1efa43562321ec9d3f4a0ea
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Apr 6 16:29:32 2010 +0800
set title to error if dashboard is loaded failed
diff --git a/lib/RT/Dispatcher.pm b/lib/RT/Dispatcher.pm
index a99b8d8..b149892 100644
--- a/lib/RT/Dispatcher.pm
+++ b/lib/RT/Dispatcher.pm
@@ -323,8 +323,13 @@ before 'Dashboards/Modify.html' => run {
if ( $id =~ /^\d+$/ ) {
my ( $ok, $msg ) = $Dashboard->load_by_id($id);
- push @$results, $msg unless ($ok);
- set title => _( "Modify the dashboard %1", $Dashboard->name );
+ if ( $ok ) {
+ set title => _( "Modify the dashboard %1", $Dashboard->name );
+ }
+ else {
+ set title => _('Error occurs');
+ push @$results, $msg;
+ }
} else {
set title => _("Create a new dashboard");
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list