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

adding tags to batch update profile casues undefined property error

    Details

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

      Description

      When viewing the profile in batch update mode I get:

      Notice: Undefined property: CRM_Contact_Form_Task_Batch::$_contactId in CRM_Contact_Form_Edit_TagsandGroups::buildQuickForm() (line 156 of /home/jamie/hobo/sites/civicrm/4/sites/all/modules/civicrm/CRM/Contact/Form/Edit/TagsAndGroups.php).
      Notice: Undefined property: CRM_Contact_Form_Task_Batch::$_contactId in CRM_Contact_Form_Edit_TagsandGroups::buildQuickForm() (line 156 of /home/jamie/hobo/sites/civicrm/4/sites/all/modules/civicrm/CRM/Contact/Form/Edit/TagsAndGroups.php).

      I think the fix is the following, but don't know enough to be sure:

      — CRM/Contact/Form/Edit/TagsAndGroups.php (revision 38749)
      +++ CRM/Contact/Form/Edit/TagsAndGroups.php (working copy)
      @@ -153,7 +153,7 @@
      require_once 'CRM/Core/BAO/Tag.php';
      $parentNames = CRM_Core_BAO_Tag::getTagSet( 'civicrm_contact' );

      • CRM_Core_Form_Tag::buildQuickForm( $form, $parentNames, 'civicrm_contact', $form->_contactId, false, true );
        + CRM_Core_Form_Tag::buildQuickForm( $form, $parentNames, 'civicrm_contact', $contactId, false, true );
        }
        $form->assign('tagGroup', $form->_tagGroup);
        }
        Index: CRM/Campaign/Page/AJAX.php

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              jamie Jamie McClelland
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: