[Rt-commit] rt branch, 5.0/require-article-name, repushed
Aaron Trevena
ast at bestpractical.com
Thu Sep 10 09:09:42 EDT 2020
The branch 5.0/require-article-name was deleted and repushed:
was fea97291925e116d291540e31c2da19cde979b8e
now 4b90b6fb21c338b0608b493823b61cf5182522d8
1: 5e37a8b037 ! 1: 73e7a43000 Require Name field when creating or editing Article
@@ -4,6 +4,9 @@
Articles with empty name fields cause a problem with re-submission
and duplicate content when creating a ticket with that article.
+
+ Make Name a required field when creating or editing articles and
+ update article extraction from tickets to set required name field.
diff --git a/lib/RT/Article.pm b/lib/RT/Article.pm
--- a/lib/RT/Article.pm
@@ -19,3 +22,15 @@
unless $self->ValidateName( $args{'Name'} );
+diff --git a/share/html/Articles/Article/ExtractFromTicket.html b/share/html/Articles/Article/ExtractFromTicket.html
+--- a/share/html/Articles/Article/ExtractFromTicket.html
++++ b/share/html/Articles/Article/ExtractFromTicket.html
+@@
+ <form action="Edit.html" method="post">
+ <input type="hidden" name="Class" value="<%$ARGS{'Class'}%>" />
+ <input type="hidden" name="Summary" value="<%$ticket->Subject%>" />
++<input type="hidden" name="Name" value="<%$ticket->Subject%>" />
+ % for (@Topics) {
+ <input type="hidden" name="Topics" value="<% $_ %>" />
+ % }
+
2: fea9729192 < -: ------- Update tests to provide required name field for articles
-: ------- > 2: 4b90b6fb21 Update tests to provide required name field for articles
More information about the rt-commit
mailing list