[Rt-commit] r8077 -
rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Ticket/Update.html
falcone at bestpractical.com
falcone at bestpractical.com
Mon Jul 9 17:09:54 EDT 2007
Author: falcone
Date: Mon Jul 9 17:09:53 2007
New Revision: 8077
Modified:
rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Ticket/Update.html/BeforeMessageBox
Log:
* Don't show articles twice.
If we find an article by matching on the Title/Summary we should
skip it if we also find it by matching in the Custom Fields
Modified: rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Ticket/Update.html/BeforeMessageBox
==============================================================================
--- rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Ticket/Update.html/BeforeMessageBox (original)
+++ rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Ticket/Update.html/BeforeMessageBox Mon Jul 9 17:09:53 2007
@@ -52,7 +52,9 @@
<td><input type="submit" value="Go" /></td>
</tr>
% }
+% my %dedupe_articles;
% while (my $article = $articles_content->Next) {
+% $dedupe_articles{$article->Id}++;
<tr>
<td> </td>
<td><%$article->Name|| loc('(no name)')%>: <%$article->Summary%></td>
@@ -60,6 +62,7 @@
</tr>
% }
% while (my $article = $articles_basics->Next) {
+% next if $dedupe_articles{$article->Id};
<tr>
<td> </td>
<td><%$article->Name || loc('(no name)')%>: <%$article->Summary%></td>
More information about the Rt-commit
mailing list