hide ticket customer links, #1165
authormark <mark>
Fri, 22 Apr 2011 21:30:18 +0000 (21:30 +0000)
committermark <mark>
Fri, 22 Apr 2011 21:30:18 +0000 (21:30 +0000)
rt/share/html/Elements/EditLinks
rt/share/html/Ticket/Elements/ShowParents

index 469b84a..d6d1ee9 100755 (executable)
@@ -73,6 +73,7 @@
     <td class="labeltop"><& ShowRelationLabel, id => $id, Label => loc('Parents'), Relation => 'Parents' &>:</td>
     <td class="value">
 % while (my $link = $Object->MemberOf->Next) {
     <td class="labeltop"><& ShowRelationLabel, id => $id, Label => loc('Parents'), Relation => 'Parents' &>:</td>
     <td class="value">
 % while (my $link = $Object->MemberOf->Next) {
+%   next if $link->Target and $link->Target =~ m(^freeside://);
       <input type="checkbox" class="checkbox" name="DeleteLink--<%$link->Type%>-<%$link->Target%>" value="1" />
         <& ShowLink, URI => $link->TargetURI &><br />
 % }
       <input type="checkbox" class="checkbox" name="DeleteLink--<%$link->Type%>-<%$link->Target%>" value="1" />
         <& ShowLink, URI => $link->TargetURI &><br />
 % }
index d337115..74bd8e1 100644 (file)
@@ -47,6 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <ul>
 % while (my $link = $member_of->Next) {
 %# END BPS TAGGED BLOCK }}}
 <ul>
 % while (my $link = $member_of->Next) {
+% next if $link->Target and $link->Target =~ m(^freeside://);
 <li><& /Elements/ShowLink, URI => $link->TargetURI &><br />
 % }
 </ul>
 <li><& /Elements/ShowLink, URI => $link->TargetURI &><br />
 % }
 </ul>