Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7443 Improve E_WARNING compliance.
  3. CRM-7698

Tolerate unassigned county_id array key in templates/CRM/Contact/Form/Edit/Address/county.tpl file.

    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 $form.address.$blockId.county_id}

      +

      {if !empty($form.address.$blockId.county_id)}

      <tr>
      <td colspan="2">
      {$form.address.$blockId.county_id.label}<br />

        Attachments

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              pillarsdotnet Bob Vincent
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: