[Rt-commit] r11151 - in rtfm/branches/2.3-EXPERIMENTAL: . html/Admin/RTFM/Classes html/Admin/RTFM/Elements
falcone at bestpractical.com
falcone at bestpractical.com
Thu Mar 20 17:52:16 EDT 2008
Author: falcone
Date: Thu Mar 20 17:52:15 2008
New Revision: 11151
Modified:
rtfm/branches/2.3-EXPERIMENTAL/ (props changed)
rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Classes/Topics.html
rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Elements/Topics
rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Global/Topics.html
Log:
r30429 at ketch: falcone | 2008-03-20 17:49:22 -0400
* remove need for Global but passing in an object from the wrapper
Modified: rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Classes/Topics.html
==============================================================================
--- rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Classes/Topics.html (original)
+++ rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Classes/Topics.html Thu Mar 20 17:52:15 2008
@@ -48,7 +48,7 @@
<& /Admin/RTFM/Elements/ClassTabs, id => $ClassObj->Id, Title => $title, current_tab => "Admin/RTFM/Classes/Topics.html?id=$id" &>
-<& /Admin/RTFM/Elements/Topics, title => $title, %ARGS &>
+<& /Admin/RTFM/Elements/Topics, title => $title, RootObj => $ClassObj, %ARGS &>
<%INIT>
Modified: rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Elements/Topics
==============================================================================
--- rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Elements/Topics (original)
+++ rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Elements/Topics Thu Mar 20 17:52:15 2008
@@ -121,14 +121,6 @@
<%INIT>
-my $RootObj;
-if ($Global) {
- $RootObj = $RT::FM::System;
-} else {
- $RootObj = new RT::FM::Class($session{'CurrentUser'});
- $RootObj->Load($ARGS{'id'}) || $m->comp("/RTFM/Elements/Error", Why => "Couldn't load class '$id'");
-}
-
my @results;
for my $k (keys %ARGS) {
@@ -217,9 +209,8 @@
<%ARGS>
-$id => undef
+$RootObj => undef
$title => ""
-$Global => undef
$Modify => ""
</%ARGS>
Modified: rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Global/Topics.html
==============================================================================
--- rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Global/Topics.html (original)
+++ rtfm/branches/2.3-EXPERIMENTAL/html/Admin/RTFM/Global/Topics.html Thu Mar 20 17:52:15 2008
@@ -47,7 +47,7 @@
%# END BPS TAGGED BLOCK }}}
<& /Admin/RTFM/Elements/GlobalTabs, current_tab => 'Admin/Global/Topics.html', Title => $title &>
-<& /Admin/RTFM/Elements/Topics, Global => 1, title => $title, %ARGS &>
+<& /Admin/RTFM/Elements/Topics, RootObj => $RT::FM::System, title => $title, %ARGS &>
<%INIT>
More information about the Rt-commit
mailing list