[Rt-commit] rt branch, 4.4/queue-include-article, repushed
Craig Kaiser
craig at bestpractical.com
Thu Dec 28 13:57:51 EST 2017
The branch 4.4/queue-include-article was deleted and repushed:
was 0639ea1850493b6d9cc1f6d0c26dbf08f057f2ea
now 06593b6a36ac87daf02b1ecae65a397a35576302
1: 0639ea1 ! 1: 06593b6 Include Article on ticket create, based on queue
@@ -42,7 +42,7 @@
+sub SetArticleIncluded {
+ my $self = shift;
+ my $value = shift;
-
++
+ return ( 0, $self->loc('Permission Denied') )
+ unless $self->CurrentUserHasRight('AdminQueue');
+
@@ -50,12 +50,13 @@
+ if ( $MyArticle->ValidateName($value) and $value ){
+ return (0, $self->loc("Invalid Article Name [_1]", $value));
+ }
-+
+
+ my ($status, $msg) = $self->SetAttribute(
+ Name => 'ArticleIncluded',
+ Description => 'Include Article on ticket create, for Queue.',
+ Content => $value,
+ );
++ return ($status, $msg) unless $status;
+ return (0, $self->loc("Article Included updated to [_1]", $value));
+}
More information about the rt-commit
mailing list