Details
-
Type:
Bug
-
Status: Done/Fixed
-
Priority:
Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.9
-
Fix Version/s: 2.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
When using some profiles in non-registration contexts, the profiles will crash CiviCRM with a fatal when submitted. Error message is the "this profile cannot be used..." message. Which turns out to be bogus.
Cause: CRM_ACL_BAO_ACL::group() returns the keys of a non-associative array rather than the values when there is an ACL granting access for all profiles to a role. This causes some UF ID to be out of range, and creates a bogus priv string upstream.
Patch is enclosed.
Can u give us the backtrace and scenario where the above occurs. The array is supposed to be an associative array with the key being an id and the value the group title. I suspect you are hitting a bug where we dont follow the above