Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.0, 4.0.0, 4.1.0, Unscheduled
-
Fix Version/s: 4.1.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
Tolerate unassigned county_id array key in templates/CRM/Contact/Form/Edit/Address/county.tpl file.
The converse fix, making sure that county_id is always set, would touch fourteen source code files.
diff --git templates/CRM/Contact/Form/Edit/Address/county.tpl templates/CRM/Contact/Form/Edit/Address/county.tpl
index 36307a9..3edb854 100644
— templates/CRM/Contact/Form/Edit/Address/county.tpl
+++ templates/CRM/Contact/Form/Edit/Address/county.tpl
@@ -23,7 +23,7 @@
see the CiviCRM license FAQ at http://civicrm.org/licensing |
--------------------------------------------------------------------
*}
-
+
{if !empty($form.address.$blockId.county_id)} <tr>
<td colspan="2">
{$form.address.$blockId.county_id.label}<br />