minor fix
authormonishdeb <monish.deb@webaccessglobal.com>
Tue, 12 Jan 2016 08:27:35 +0000 (13:57 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Tue, 12 Jan 2016 08:27:35 +0000 (13:57 +0530)
CRM/Custom/Form/CustomData.php
templates/CRM/Case/Page/CustomDataView.tpl

index 74acb1a24fd39596e35c63b1987d538d36a998b0..8b30cfb5f883939e451fb93514a0adbfcadd92cb 100644 (file)
@@ -163,7 +163,7 @@ class CRM_Custom_Form_CustomData {
     );
 
     if (property_exists($form, '_customValueCount') && !empty($groupTree)) {
-      $form->_customValueCount = CRM_Core_BAO_CustomGroup::buildCustomDataView($form, $groupTree, TRUE, NULL, NULL);
+      $form->_customValueCount = CRM_Core_BAO_CustomGroup::buildCustomDataView($form, $groupTree, TRUE, NULL, NULL, NULL, $form->_entityId);
     }
     // we should use simplified formatted groupTree
     $groupTree = CRM_Core_BAO_CustomGroup::formatGroupTree($groupTree, $form->_groupCount, $form);
index 4ae38614f241e3e4a53cab8fa9c7ca86ea3e7eba..2c4d5fcacc8c921eba7b9df169a6887a5bb6847d 100644 (file)
                 {/foreach}
               </td>
               {else}
-              <td class="label">{$element.field_title}</td>
-              {if $element.field_type == 'File'}
-                {if $element.field_value.displayURL}
-                  <td class="html-adjust">
-                    <a href="{$element.field_value.displayURL}" class='crm-image-popup'>
-                      <img src="{$element.field_value.displayURL}" height = "100" width="100">
-                    </a>
-                  </td>
-                  {else}
-                  <td class="html-adjust">
-                    <a href="{$element.field_value.fileURL}">{$element.field_value.fileName}</a>
-                  </td>
-                {/if}
-                {else}
+                <td class="label">{$element.field_title}</td>
                 <td class="html-adjust">{$element.field_value}</td>
-              {/if}
             {/if}
           </tr>
         </table>