[Rt-commit] rt branch, 4.0/validate-dashboard-args, updated. rt-4.0.0rc6-127-g26b5c72

Shawn Moore sartak at bestpractical.com
Wed Mar 9 12:07:29 EST 2011


The branch, 4.0/validate-dashboard-args has been updated
       via  26b5c723e8fd96929bc2bf993353478217b3f4af (commit)
      from  e86e6bfa8608edb97b49f29dbc83bd6f8f5acf1b (commit)

Summary of changes:
 lib/RT/Dashboard.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 26b5c723e8fd96929bc2bf993353478217b3f4af
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Mar 9 12:07:11 2011 -0500

    ->Name is the dashboard name, ->{'Attribute'}->Name is what I wanna look at

diff --git a/lib/RT/Dashboard.pm b/lib/RT/Dashboard.pm
index a840ec1..0756098 100644
--- a/lib/RT/Dashboard.pm
+++ b/lib/RT/Dashboard.pm
@@ -165,7 +165,7 @@ attributes under the hood.
 
 sub PostLoadValidate {
     my $self = shift;
-    return (0, "Invalid object type") unless $self->Name eq 'Dashboard';
+    return (0, "Invalid object type") unless $self->{'Attribute'}->Name eq 'Dashboard';
     return 1;
 }
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list