From 9c7f8660b1f2ced92f3bbe6734ecd490df6e70d2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 29 Jun 2021 14:26:13 -0400 Subject: [PATCH] Fix often undefined variable $row.class in tpl tables --- templates/CRM/ACL/Page/ACL.tpl | 2 +- templates/CRM/ACL/Page/ACLBasic.tpl | 2 +- templates/CRM/ACL/Page/EntityRole.tpl | 2 +- templates/CRM/Activity/Form/Selector.tpl | 2 +- templates/CRM/Activity/Selector/Activity.tpl | 2 +- templates/CRM/Admin/Page/JobLog.tpl | 2 +- templates/CRM/Admin/Page/LabelFormats.tpl | 2 +- templates/CRM/Admin/Page/LocationType.tpl | 2 +- templates/CRM/Admin/Page/Mapping.tpl | 2 +- templates/CRM/Admin/Page/OptionGroup.tpl | 2 +- templates/CRM/Admin/Page/ParticipantStatusType.tpl | 2 +- templates/CRM/Admin/Page/PaymentProcessor.tpl | 2 +- templates/CRM/Admin/Page/PaymentProcessorType.tpl | 2 +- templates/CRM/Admin/Page/PdfFormats.tpl | 2 +- templates/CRM/Admin/Page/PreferencesDate.tpl | 2 +- templates/CRM/Admin/Page/RelationshipType.tpl | 2 +- templates/CRM/Admin/Page/Reminders.tpl | 2 +- templates/CRM/Badge/Page/Layout.tpl | 2 +- templates/CRM/Contribute/Page/ContributionType.tpl | 2 +- templates/CRM/Contribute/Page/ManagePremiums.tpl | 2 +- templates/CRM/Contribute/Page/PcpUserDashboard.tpl | 2 +- templates/CRM/Contribute/Page/Premium.tpl | 2 +- templates/CRM/Custom/Page/Group.tpl | 2 +- templates/CRM/Event/Page/List.tpl | 2 +- templates/CRM/Financial/Page/FinancialTypeAccount.tpl | 2 +- templates/CRM/Mailing/Page/Component.tpl | 2 +- templates/CRM/Member/Page/MembershipType.tpl | 2 +- templates/CRM/Price/Page/Field.tpl | 2 +- templates/CRM/Price/Page/Option.tpl | 2 +- templates/CRM/Price/Page/Set.tpl | 2 +- templates/CRM/SMS/Page/Provider.tpl | 2 +- templates/CRM/UF/Page/Field.tpl | 2 +- templates/CRM/UF/Page/Group.tpl | 4 ++-- 33 files changed, 34 insertions(+), 34 deletions(-) diff --git a/templates/CRM/ACL/Page/ACL.tpl b/templates/CRM/ACL/Page/ACL.tpl index d1e07327ce..302c97a06c 100644 --- a/templates/CRM/ACL/Page/ACL.tpl +++ b/templates/CRM/ACL/Page/ACL.tpl @@ -35,7 +35,7 @@ {foreach from=$rows item=row key=aclID} - + {$row.entity} {$row.operation} {$row.object_name} diff --git a/templates/CRM/ACL/Page/ACLBasic.tpl b/templates/CRM/ACL/Page/ACLBasic.tpl index 8ecb0eee8a..f747719e1e 100644 --- a/templates/CRM/ACL/Page/ACLBasic.tpl +++ b/templates/CRM/ACL/Page/ACLBasic.tpl @@ -28,7 +28,7 @@ {foreach from=$rows item=row} - + {$row.entity} {$row.object_table} {$row.action} diff --git a/templates/CRM/ACL/Page/EntityRole.tpl b/templates/CRM/ACL/Page/EntityRole.tpl index d76a8fc56f..9d4fd90107 100644 --- a/templates/CRM/ACL/Page/EntityRole.tpl +++ b/templates/CRM/ACL/Page/EntityRole.tpl @@ -31,7 +31,7 @@ {foreach from=$rows item=row} - + {$row.acl_role} {$row.entity} {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} diff --git a/templates/CRM/Activity/Form/Selector.tpl b/templates/CRM/Activity/Form/Selector.tpl index ab1e4f6e10..c8ac5d4ed1 100644 --- a/templates/CRM/Activity/Form/Selector.tpl +++ b/templates/CRM/Activity/Form/Selector.tpl @@ -35,7 +35,7 @@ {counter start=0 skip=1 print=false} {foreach from=$rows item=row} - + {if !$single } {if $context eq 'Search' } {assign var=cbName value=$row.checkbox} diff --git a/templates/CRM/Activity/Selector/Activity.tpl b/templates/CRM/Activity/Selector/Activity.tpl index 2d866e5b40..ce706a7c7a 100644 --- a/templates/CRM/Activity/Selector/Activity.tpl +++ b/templates/CRM/Activity/Selector/Activity.tpl @@ -34,7 +34,7 @@ {counter start=0 skip=1 print=false} {foreach from=$rows item=row} - + {$row.activity_type} {$row.subject} diff --git a/templates/CRM/Admin/Page/JobLog.tpl b/templates/CRM/Admin/Page/JobLog.tpl index 5e93685a6a..4199bade94 100644 --- a/templates/CRM/Admin/Page/JobLog.tpl +++ b/templates/CRM/Admin/Page/JobLog.tpl @@ -36,7 +36,7 @@ {ts}Command{/ts}/{ts}Job Status{/ts}/{ts}Additional Information{/ts} {foreach from=$rows item=row} - + {$row.run_time} {$row.name} diff --git a/templates/CRM/Admin/Page/LabelFormats.tpl b/templates/CRM/Admin/Page/LabelFormats.tpl index e2ddf676bd..4a4142f5f8 100644 --- a/templates/CRM/Admin/Page/LabelFormats.tpl +++ b/templates/CRM/Admin/Page/LabelFormats.tpl @@ -48,7 +48,7 @@ {foreach from=$rows item=row} - + {$row.label} {$row.groupName} {$row.weight} diff --git a/templates/CRM/Admin/Page/LocationType.tpl b/templates/CRM/Admin/Page/LocationType.tpl index 9802054b33..80e8b716aa 100644 --- a/templates/CRM/Admin/Page/LocationType.tpl +++ b/templates/CRM/Admin/Page/LocationType.tpl @@ -34,7 +34,7 @@ {foreach from=$rows item=row} - + {$row.name} {$row.display_name} {if !empty($row.vcard_name)}{$row.vcard_name}{/if} diff --git a/templates/CRM/Admin/Page/Mapping.tpl b/templates/CRM/Admin/Page/Mapping.tpl index 8f34ebc4a5..d7b3ba0538 100644 --- a/templates/CRM/Admin/Page/Mapping.tpl +++ b/templates/CRM/Admin/Page/Mapping.tpl @@ -27,7 +27,7 @@ {foreach from=$rows item=row} - + {$row.name} {$row.description} {$row.mapping_type} diff --git a/templates/CRM/Admin/Page/OptionGroup.tpl b/templates/CRM/Admin/Page/OptionGroup.tpl index ca9abf7251..1d72cb849c 100644 --- a/templates/CRM/Admin/Page/OptionGroup.tpl +++ b/templates/CRM/Admin/Page/OptionGroup.tpl @@ -39,7 +39,7 @@ {foreach from=$rows item=row} - + {if $row.title}{$row.title}{else}( {ts}none{/ts} ){/if} {$row.name} {if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} diff --git a/templates/CRM/Admin/Page/ParticipantStatusType.tpl b/templates/CRM/Admin/Page/ParticipantStatusType.tpl index 273d3b728d..a32d84cd41 100644 --- a/templates/CRM/Admin/Page/ParticipantStatusType.tpl +++ b/templates/CRM/Admin/Page/ParticipantStatusType.tpl @@ -29,7 +29,7 @@ {foreach from=$rows item=row} - + {$row.label} {$row.name} ({$row.id}) {$row.class} diff --git a/templates/CRM/Admin/Page/PaymentProcessor.tpl b/templates/CRM/Admin/Page/PaymentProcessor.tpl index 2323dffa9c..4e12846cfd 100644 --- a/templates/CRM/Admin/Page/PaymentProcessor.tpl +++ b/templates/CRM/Admin/Page/PaymentProcessor.tpl @@ -34,7 +34,7 @@ {foreach from=$rows item=row} - + {$row.id} {$row.test_id} {$row.name} diff --git a/templates/CRM/Admin/Page/PaymentProcessorType.tpl b/templates/CRM/Admin/Page/PaymentProcessorType.tpl index 9c1f9b5171..2340f7e653 100644 --- a/templates/CRM/Admin/Page/PaymentProcessorType.tpl +++ b/templates/CRM/Admin/Page/PaymentProcessorType.tpl @@ -31,7 +31,7 @@ {foreach from=$rows item=row} - + {$row.name} {$row.title} {if isset($row.description)}{$row.description}{/if} diff --git a/templates/CRM/Admin/Page/PdfFormats.tpl b/templates/CRM/Admin/Page/PdfFormats.tpl index 063a160ff1..b715a07bca 100644 --- a/templates/CRM/Admin/Page/PdfFormats.tpl +++ b/templates/CRM/Admin/Page/PdfFormats.tpl @@ -47,7 +47,7 @@ {foreach from=$rows item=row} - + {$row.name} {$row.description} {icon condition=$row.is_default}{ts}Default{/ts}{/icon}  diff --git a/templates/CRM/Admin/Page/PreferencesDate.tpl b/templates/CRM/Admin/Page/PreferencesDate.tpl index 96f806dbd7..aa39aefd0a 100644 --- a/templates/CRM/Admin/Page/PreferencesDate.tpl +++ b/templates/CRM/Admin/Page/PreferencesDate.tpl @@ -25,7 +25,7 @@ {foreach from=$rows item=row} - + {$row.name} {$row.description} {if !$row.date_format}{ts}Default{/ts}{else}{$row.date_format}{/if} diff --git a/templates/CRM/Admin/Page/RelationshipType.tpl b/templates/CRM/Admin/Page/RelationshipType.tpl index 974033dba4..f1f5c79bd5 100644 --- a/templates/CRM/Admin/Page/RelationshipType.tpl +++ b/templates/CRM/Admin/Page/RelationshipType.tpl @@ -44,7 +44,7 @@ {foreach from=$rows item=row} - + {$row.label_a_b} {$row.label_b_a} diff --git a/templates/CRM/Admin/Page/Reminders.tpl b/templates/CRM/Admin/Page/Reminders.tpl index 39b11de446..3a08352e62 100644 --- a/templates/CRM/Admin/Page/Reminders.tpl +++ b/templates/CRM/Admin/Page/Reminders.tpl @@ -28,7 +28,7 @@ {if $rows and is_array($rows)} {foreach from=$rows item=row} - + {$row.title} {$row.entity} - {$row.value} {if $row.absolute_date}{$row.absolute_date|crmDate}{else}{$row.start_action_offset} {$row.start_action_unit}{if $row.start_action_offset > 1}{ts}(s){/ts}{/if} {$row.start_action_condition} {$row.entityDate}{/if} diff --git a/templates/CRM/Badge/Page/Layout.tpl b/templates/CRM/Badge/Page/Layout.tpl index a69b549b34..88bca86ec1 100644 --- a/templates/CRM/Badge/Page/Layout.tpl +++ b/templates/CRM/Badge/Page/Layout.tpl @@ -32,7 +32,7 @@ {foreach from=$rows item=row} - + {$row.title} {$row.description} diff --git a/templates/CRM/Contribute/Page/ContributionType.tpl b/templates/CRM/Contribute/Page/ContributionType.tpl index 25103e624d..8a82454224 100644 --- a/templates/CRM/Contribute/Page/ContributionType.tpl +++ b/templates/CRM/Contribute/Page/ContributionType.tpl @@ -32,7 +32,7 @@ {foreach from=$rows item=row} - + {$row.name} {$row.description} {$row.accounting_code} diff --git a/templates/CRM/Contribute/Page/ManagePremiums.tpl b/templates/CRM/Contribute/Page/ManagePremiums.tpl index 6f2d632329..f80c43e5dc 100644 --- a/templates/CRM/Contribute/Page/ManagePremiums.tpl +++ b/templates/CRM/Contribute/Page/ManagePremiums.tpl @@ -43,7 +43,7 @@ {foreach from=$rows item=row} - + {$row.name} {$row.sku} {$row.price|crmMoney} diff --git a/templates/CRM/Contribute/Page/PcpUserDashboard.tpl b/templates/CRM/Contribute/Page/PcpUserDashboard.tpl index 60c4752846..23c59e8283 100644 --- a/templates/CRM/Contribute/Page/PcpUserDashboard.tpl +++ b/templates/CRM/Contribute/Page/PcpUserDashboard.tpl @@ -25,7 +25,7 @@ {foreach from=$pcpInfo item=row} - + {$row.pcpTitle} {$row.pageTitle} {if $row.end_date}{$row.end_date|truncate:10:''|crmDate}{else}({ts}ongoing{/ts}){/if} diff --git a/templates/CRM/Contribute/Page/Premium.tpl b/templates/CRM/Contribute/Page/Premium.tpl index 5dd5aa9157..18a30af042 100644 --- a/templates/CRM/Contribute/Page/Premium.tpl +++ b/templates/CRM/Contribute/Page/Premium.tpl @@ -27,7 +27,7 @@ {foreach from=$rows item=row} - + {$row.product_name} {$row.sku} {$row.price|crmMoney} diff --git a/templates/CRM/Custom/Page/Group.tpl b/templates/CRM/Custom/Page/Group.tpl index d430a99f3b..2b2b7e6b5b 100644 --- a/templates/CRM/Custom/Page/Group.tpl +++ b/templates/CRM/Custom/Page/Group.tpl @@ -40,7 +40,7 @@ {foreach from=$rows item=row} - + {$row.id} {$row.title} {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} diff --git a/templates/CRM/Event/Page/List.tpl b/templates/CRM/Event/Page/List.tpl index e4578b1d49..50da60fd8b 100644 --- a/templates/CRM/Event/Page/List.tpl +++ b/templates/CRM/Event/Page/List.tpl @@ -26,7 +26,7 @@ {foreach from=$events key=uid item=event} - + {$event.title} {if $event.summary}{$event.summary|purify} ({ts}read more{/ts}...){else} {/if} diff --git a/templates/CRM/Financial/Page/FinancialTypeAccount.tpl b/templates/CRM/Financial/Page/FinancialTypeAccount.tpl index 5bc7943483..c3af8775a1 100644 --- a/templates/CRM/Financial/Page/FinancialTypeAccount.tpl +++ b/templates/CRM/Financial/Page/FinancialTypeAccount.tpl @@ -33,7 +33,7 @@ {foreach from=$rows item=row} - + {$row.account_relationship} {$row.financial_account} {$row.accounting_code} diff --git a/templates/CRM/Mailing/Page/Component.tpl b/templates/CRM/Mailing/Page/Component.tpl index ee7b47880d..ccc1db657f 100644 --- a/templates/CRM/Mailing/Page/Component.tpl +++ b/templates/CRM/Mailing/Page/Component.tpl @@ -29,7 +29,7 @@ {foreach from=$rows item=row} - + {$row.name} {$row.component_type} {$row.subject} diff --git a/templates/CRM/Member/Page/MembershipType.tpl b/templates/CRM/Member/Page/MembershipType.tpl index 04dc38cc7d..74fff6a6f4 100644 --- a/templates/CRM/Member/Page/MembershipType.tpl +++ b/templates/CRM/Member/Page/MembershipType.tpl @@ -37,7 +37,7 @@ {foreach from=$rows item=row} - + {$row.name} {$row.period_type} {$row.fixed_period_start_day} diff --git a/templates/CRM/Price/Page/Field.tpl b/templates/CRM/Price/Page/Field.tpl index 665ab2add5..9b6153ec04 100644 --- a/templates/CRM/Price/Page/Field.tpl +++ b/templates/CRM/Price/Page/Field.tpl @@ -58,7 +58,7 @@ {foreach from=$priceField key=fid item=row} - + {$row.label} {$row.html_type_display} {$row.weight} diff --git a/templates/CRM/Price/Page/Option.tpl b/templates/CRM/Price/Page/Option.tpl index 0f4a5b079a..7889a67cd2 100644 --- a/templates/CRM/Price/Page/Option.tpl +++ b/templates/CRM/Price/Page/Option.tpl @@ -58,7 +58,7 @@ {foreach from=$customOption item=row} - + {$row.label} {$row.amount|crmMoney} {$row.non_deductible_amount|crmMoney} diff --git a/templates/CRM/Price/Page/Set.tpl b/templates/CRM/Price/Page/Set.tpl index e145781fe9..4b90dce429 100644 --- a/templates/CRM/Price/Page/Set.tpl +++ b/templates/CRM/Price/Page/Set.tpl @@ -48,7 +48,7 @@ {foreach from=$rows item=row} - + {$row.title} {$row.extends} {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} diff --git a/templates/CRM/SMS/Page/Provider.tpl b/templates/CRM/SMS/Page/Provider.tpl index 9a9deac2c2..3ebf7393f7 100644 --- a/templates/CRM/SMS/Page/Provider.tpl +++ b/templates/CRM/SMS/Page/Provider.tpl @@ -29,7 +29,7 @@ {ts}Action{/ts} {foreach from=$rows item=row} - + {$row.name} ({$row.title})
{ts}API Type:{/ts} {$row.api_type}
{ts}API Url:{/ts} {$row.api_url}
diff --git a/templates/CRM/UF/Page/Field.tpl b/templates/CRM/UF/Page/Field.tpl index 75229e7bc6..64f0b23ab2 100644 --- a/templates/CRM/UF/Page/Field.tpl +++ b/templates/CRM/UF/Page/Field.tpl @@ -42,7 +42,7 @@ {foreach from=$ufField item=row} - + {$row.label}({$row.field_type}) {if in_array("Profile",$otherModules) or in_array("Search Profile",$otherModules) } {$row.visibility_display} diff --git a/templates/CRM/UF/Page/Group.tpl b/templates/CRM/UF/Page/Group.tpl index d77ffdede5..4fcc269f5d 100644 --- a/templates/CRM/UF/Page/Group.tpl +++ b/templates/CRM/UF/Page/Group.tpl @@ -69,7 +69,7 @@ {foreach from=$rows item=row} {if !$row.is_reserved } - + {$row.title} {$row.frontend_title} @@ -114,7 +114,7 @@ {foreach from=$rows item=row} {if $row.is_reserved} - + {$row.title} {$row.frontend_title} -- 2.25.1