[Rt-commit] [rtir] 20/22: Fix some bugs in Split/Child error detection
Jesse Vincent
jesse at bestpractical.com
Sun Mar 29 02:51:06 EDT 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit b59a2a71807c01d9b535671329f48f98feddf5b1
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Sat Mar 28 23:17:01 2015 -0700
Fix some bugs in Split/Child error detection
---
html/RTIR/Incident/Create.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index c6dbe58..f72d81e 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -55,12 +55,12 @@
<& /Elements/ListActions, actions => \@results &>
<%PERL>
-if ( $SplitObj && !$SplitObj->CurrentUserHasRight('ModifyTicket') ) {
- $m->out( loc('You are not allowed to split from #[_2].', $SplitObj->id ) );
+if ( $SplitObj && $SplitObj->id && !$SplitObj->CurrentUserHasRight('ModifyTicket') ) {
+ $m->out( loc('You are not allowed to split from #[_1].', $SplitObj->id ) );
return;
}
-if ( $ChildObj && !$ChildObj->CurrentUserHasRight('ModifyTicket') ) {
- $m->out( loc('You are not allowed to link with #[_2].', $ChildObj->id ) );
+if ( $ChildObj && $ChildObj->id && !$ChildObj->CurrentUserHasRight('ModifyTicket') ) {
+ $m->out( loc('You are not allowed to link with #[_1].', $ChildObj->id ) );
return;
}
</%PERL>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list