[Rt-commit] r3661 - in rtfm/branches/2.1-TESTING: . html/RTFM
alexmv at bestpractical.com
alexmv at bestpractical.com
Wed Aug 17 13:08:39 EDT 2005
Author: alexmv
Date: Wed Aug 17 13:08:38 2005
New Revision: 3661
Modified:
rtfm/branches/2.1-TESTING/ (props changed)
rtfm/branches/2.1-TESTING/html/RTFM/Topics.html
Log:
r5912 at zoq-fot-pik: chmrr | 2005-08-17 13:12:06 -0400
* "Articles with no topics" is specific to a class
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 Aug 17 13:08:38 2005
@@ -64,7 +64,7 @@
}
}
@articles = map {$a = RT::FM::Article->new($session{'CurrentUser'}); $a->Load($_->ObjectId); $a} @{$Articles->ItemsArrayRef}
-} else {
+} elsif ($class) {
my $Articles = RT::FM::ArticleCollection->new($session{'CurrentUser'});
my $TopicsAlias = $Articles->Join(
TYPE => 'left',
@@ -85,6 +85,11 @@
VALUE => 'NULL',
QUOTEVALUE => 0,
);
+ $Articles->Limit(
+ FIELD => 'Class',
+ OPERATOR => '=',
+ VALUE => $class,
+ );
@articles = @{$Articles->ItemsArrayRef};
}
</%perl>
@@ -92,7 +97,7 @@
% if (@articles) {
% if ($id) {
<h2><&|/l&>Articles in this topic</&></h2>
-% } else {
+% } elsif ($class) {
<h2><&|/l&>Articles with no topics</&></h2>
% }
<ul>
More information about the Rt-commit
mailing list