Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 4.4.4, 4.4.5, 4.4.6
-
Fix Version/s: Unscheduled
-
Component/s: Core CiviCRM
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:Developer Doc
Description
Checked by Chris Bugess on the Forum
This looks like a bug that may have been missed since 4.4.4 or possibly 4.4.3
I managed to replicate the error on the demo site.
This is what I have found...
If you go to Administer > Customize Data and Screens > Display Preferences > Editing Contacts and untick the 'Tags and Groups' option you will find that an error message is displayed when accessing a contact record using the Edit button and then saving the record using the Save button. In addition to throwing up an error message the bug also drops all groups previously selected on the record.
This is the error message...
Notice: Undefined index: group in CRM_Contact_Form_Contact->postProcess() (line 978 of /home/webeditor/jenkins-node/workspace/buildkit-demos.civicrm.org/build/d7-demo/sites/all/modules/civicrm/CRM/Contact/Form/Contact.php).
Warning: array_key_exists() expects parameter 2 to be array, null given in CRM_Contact_Form_Contact->postProcess() (line 978 of /home/webeditor/jenkins-node/workspace/buildkit-demos.civicrm.org/build/d7-demo/sites/all/modules/civicrm/CRM/Contact/Form/Contact.php).
If you go back to the above 'Tags and Groups' option and retick it you will find that the record can be edited again successfully using the Edit button. This time when you click on the Save button there is no error message and no groups are dropped.
Further information on the error can be found on the forum at https://forum.civicrm.org/index.php/topic,33657.0.html?PHPSESSID=s10t08qm4ddkgmgarjqsssdaj5