Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4087

Add Contacts to Group Task : Misplaced <script> tag causes display errors in some Drupal themes

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Bug is described here:

      http://forum.civicrm.org/index.php/topic,6243.msg27749.html#msg27749

      Fix is to move script tag inside the if condition:

      {if !$group.id} {literal}

      <script type="text/javascript">
      showElements();
      function showElements() {
      if ( document.getElementsByName('group_option')[0].checked )

      { show('id_existing_group'); hide('id_new_group'); }

      else

      { show('id_new_group'); hide('id_existing_group'); }

      }
      </script>

      {/literal} {/if}

      The 2nd bug reported in that post should be fixed already - Activity.tpl has been restructured quite a bit and it looks ok to me (doesn't have the unmatched <script> tag problem).

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: