Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.2.7
-
Fix Version/s: 2.2.8
-
Component/s: None
-
Labels:None
Description
I mentioned this in a comment on CRM-4737 but creating a new issue so that it doesn't get overlooked.
The Organization created during On Behalf of signup has no phone_type_id. In 2.2.5 I fixed this with the following change to CRM/Contribute/Form/Contribution/Confirm.php:
— Confirm.php.orig 2009-05-04 21:53:38.000000000 +0100
+++ Confirm.php.temp-phonetype-fix 2009-07-17 16:47:20.000000000 +0100
@@ -1003,6 +1003,7 @@
$behalfOrganization['location'][1]['is_primary'] = 1;
$behalfOrganization['location'][1]['location_type_id'] =
CRM_Core_DAO::getFieldValue( 'CRM_Core_DAO_LocationType', 'Main', 'id', 'name' );
+ $behalfOrganization['location'][1]['phone'][1]['phone_type_id'] = 1;
// get the relationship type id
require_once "CRM/Contact/DAO/RelationshipType.php";