[Rt-commit] r3853 - in rtfm/branches/2.1-TESTING: .
html/Admin/RTFM/Classes html/RTFM html/RTFM/Article
html/RTFM/Elements
alexmv at bestpractical.com
alexmv at bestpractical.com
Wed Sep 14 15:30:34 EDT 2005
Author: alexmv
Date: Wed Sep 14 15:30:32 2005
New Revision: 3853
Modified:
rtfm/branches/2.1-TESTING/ (props changed)
rtfm/branches/2.1-TESTING/html/Admin/RTFM/Classes/Modify.html
rtfm/branches/2.1-TESTING/html/RTFM/Article/ExtractIntoClass.html
rtfm/branches/2.1-TESTING/html/RTFM/Article/PreCreate.html
rtfm/branches/2.1-TESTING/html/RTFM/Article/Search.html
rtfm/branches/2.1-TESTING/html/RTFM/Elements/SelectClass
rtfm/branches/2.1-TESTING/html/RTFM/Topics.html
Log:
r6374 at zoq-fot-pik: chmrr | 2005-09-14 15:30:02 -0400
* Limit to enabled classes in most places
* When creating a class, default to enabled, not disabled
Modified: rtfm/branches/2.1-TESTING/html/Admin/RTFM/Classes/Modify.html
==============================================================================
--- rtfm/branches/2.1-TESTING/html/Admin/RTFM/Classes/Modify.html (original)
+++ rtfm/branches/2.1-TESTING/html/Admin/RTFM/Classes/Modify.html Wed Sep 14 15:30:32 2005
@@ -89,7 +89,7 @@
}
#we're asking about enabled on the web page but really care about disabled.
-if ($Enabled == 1) {
+if ($Enabled == 1 or (not defined $Enabled and $Create)) {
$Disabled = 0;
}
else {
Modified: rtfm/branches/2.1-TESTING/html/RTFM/Article/ExtractIntoClass.html
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Article/ExtractIntoClass.html (original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Article/ExtractIntoClass.html Wed Sep 14 15:30:32 2005
@@ -21,9 +21,9 @@
<h2><&|/l&>Create a new article in</&>:</h2>
<ul>
-% my $Classes = RT::FM::ClassCollection->new($session{'CurrentUser'});
-% $Classes->UnLimit;
-% while (my $Class = $Classes->Next) {
+% my $Classes = RT::FM::ClassCollection->new($session{'CurrentUser'});
+% $Classes->LimitToEnabled();
+% while (my $Class = $Classes->Next) {
<li><a href="ExtractIntoTopic.html?Ticket=<%$Ticket%>&Class=<%$Class->Id%>" onclick="document.getElementById('topics-<% $Class->Id %>').style.display = (document.getElementById('topics-<% $Class->Id %>').style.display == 'block') ? 'none' : 'block'; return false;"><%$Class->Name%></a>:
<%$Class->Description%>
<div id="topics-<%$Class->Id%>" style="display: none">
Modified: rtfm/branches/2.1-TESTING/html/RTFM/Article/PreCreate.html
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Article/PreCreate.html (original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Article/PreCreate.html Wed Sep 14 15:30:32 2005
@@ -20,7 +20,7 @@
Title => loc('Create an article in class...') &>
<ul>
% my $Classes = RT::FM::ClassCollection->new($session{'CurrentUser'});
-% $Classes->UnLimit;
+% $Classes->LimitToEnabled();
% while (my $Class = $Classes->Next) {
<li><a href="Edit.html?Class=<%$Class->Id%>"><&|/l, $Class->Name&>in class [_1]</&></a></li>
% }
Modified: rtfm/branches/2.1-TESTING/html/RTFM/Article/Search.html
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Article/Search.html (original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Article/Search.html Wed Sep 14 15:30:32 2005
@@ -20,7 +20,7 @@
% unless (%ARGS) {
% my $Classes=new RT::FM::ClassCollection($session{'CurrentUser'});
-% $Classes->UnLimit;
+% $Classes->LimitToEnabled();
<table width="100%" border="0">
<tr><td valign="top" width="50%">
<ul>
Modified: rtfm/branches/2.1-TESTING/html/RTFM/Elements/SelectClass
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Elements/SelectClass (original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Elements/SelectClass Wed Sep 14 15:30:32 2005
@@ -58,7 +58,7 @@
my @Default = ref($Default) eq 'ARRAY' ? @$Default : ( $Default);
my $Classes=new RT::FM::ClassCollection($session{'CurrentUser'});
-$Classes->UnLimit;
+$Classes->LimitToEnabled();
my $d = new RT::FM::Class($session{'CurrentUser'});
$d->Load($Default[0]);
Modified: rtfm/branches/2.1-TESTING/html/RTFM/Topics.html
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Topics.html (original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Topics.html Wed Sep 14 15:30:32 2005
@@ -121,7 +121,7 @@
$currclass->Load($class);
} else {
$Classes = RT::FM::ClassCollection->new($session{'CurrentUser'});
- $Classes->UnLimit;
+ $Classes->LimitToEnabled();
}
if ($id) {
More information about the Rt-commit
mailing list