CRM-12684 fix: if custom data's profile field weight order is against to the order...
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Wed, 29 May 2013 14:13:04 +0000 (19:43 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Wed, 29 May 2013 14:13:04 +0000 (19:43 +0530)
templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl

index 2b567bffd5f5850786324ba2ca15ea01e342aebf..a334e32393a3b81820d4088db5b691ecae99ce29 100644 (file)
       <div id="browseValues">
         <div>
         {strip}
-          <table id="records" class="display">
-          <thead>
-               <tr>
+        <table id="records" class="display">
+         <thead>
+            <tr>
           {foreach from=$headers key=recId item=head}
              <th>{ts}{$head}{/ts}</th>
-         {/foreach}
+          {/foreach}
              <th></th>
              </tr>
-           </thead>
-     {foreach from=$records key=recId item=rows}   
-       <tr class="{cycle values="odd-row,even-row"}">     
-         {foreach from=$rows item=row}
-            {foreach from=$row item=val key=ids}
-              <td>{$val}</td>
-            {/foreach}
-         {/foreach}
-       </tr>
-     {/foreach}
-          </table>
+          </thead>
+          {foreach from=$records key=recId item=rows}   
+            <tr class="{cycle values="odd-row,even-row"}">
+              {foreach from=$headers key=hrecId item=head}
+               <td>{$rows.$hrecId}</td>
+              {/foreach}
+              <td>{$rows.action}</td>
+            </tr>
+          {/foreach}
+         </table>
         {/strip}
        </div>
       </div>