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

Ensure that multiClient gets properly converted to a javascript-compatible Boolean in templates/CRM/Contact/Form/NewContact.tpl

    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

      Ensure that multiClient gets properly converted to a javascript-compatible Boolean in templates/CRM/Contact/Form/NewContact.tpl

      diff --git templates/CRM/Contact/Form/NewContact.tpl templates/CRM/Contact/Form/NewContact.tpl
      index 106fa53..3f400a6 100644
      — templates/CRM/Contact/Form/NewContact.tpl
      +++ templates/CRM/Contact/Form/NewContact.tpl
      @@ -41,7 +41,7 @@

      {literal}
      <script type="text/javascript">
      - var allowMultiClient = Boolean({/literal}{$multiClient}{literal}

      );
      + var allowMultiClient = Boolean(

      {/literal}

      {if empty({$multiClient})}0

      {else}

      1

      {/if} {literal}

      );
      var newToken = '';
      var existingTokens = '';
      cj( function( ) {

        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: