Notice fix - schedule reminders
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 25 Aug 2023 01:36:35 +0000 (13:36 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 25 Aug 2023 01:36:35 +0000 (13:36 +1200)
CRM/Admin/Page/ScheduleReminders.php
templates/CRM/Admin/Page/Reminders.tpl

index 8952fc8ce5c867a0891e4072752b42af00f62041..ed73fb9c46ddef27b46aad8c142ab340fc52c61a 100644 (file)
@@ -94,6 +94,7 @@ class CRM_Admin_Page_ScheduleReminders extends CRM_Core_Page_Basic {
         'ActionSchedule',
         $format['id']
       );
+      $format = array_merge(['class' => ''], $format);
     }
 
     $this->assign('rows', $reminderList);
index f4e225f4ef2bcca9c95ac2dbe873567d682a9da3..0418fd99e4a59eafd686c25094da278c94756caf 100644 (file)
@@ -28,7 +28,7 @@
     </thead>
     {if $rows and is_array($rows)}
       {foreach from=$rows item=row}
-        <tr id="action_schedule-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
+        <tr id="action_schedule-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
           <td class="crm-scheduleReminders-title crm-editable" data-field="title">{$row.title}</td>
           <td class="crm-scheduleReminders-value">{$row.entity} - {$row.value}</td>
           <td class="crm-scheduleReminders-description">{if $row.absolute_date}{$row.absolute_date|crmDate}{else}{$row.start_action_offset}&nbsp;{$row.start_action_unit}{if $row.start_action_offset > 1}{ts}(s){/ts}{/if}&nbsp;{$row.start_action_condition}&nbsp;{$row.entityDate}{/if}</td>