do not repeat custom data edit button for custom data with multiple values
authorKurund Jalmi <kurund@civicrm.org>
Wed, 29 May 2013 09:36:28 +0000 (15:06 +0530)
committerKurund Jalmi <kurund@civicrm.org>
Wed, 29 May 2013 09:36:28 +0000 (15:06 +0530)
templates/CRM/Custom/Page/CustomDataView.tpl

index 81cd70ede89541f7b5b3552aaf30e805024596ed..e67b91ffe62159d61c477ef6ac2d164d8b575362 100644 (file)
@@ -29,7 +29,7 @@
   {foreach from=$customValues item=cd_edit key=cvID}
     <table class="no-border">
       {assign var='index' value=$groupId|cat:"_$cvID"}
-      {if $editOwnCustomData or ($showEdit and $editCustomData and $groupId)}
+      {if ($editOwnCustomData and $showEdit) or ($showEdit and $editCustomData and $groupId)}
         <tr>
           <td>
             <a