Merge pull request #23866 from civicrm/5.51
[civicrm-core.git] / CRM / Contribute / Form / Contribution / Confirm.php
index 3a860dde7f24ffe128cc4dafa897af0463617c26..4b384c17f989e9c00a4a9a59ecfe3c72961ea007 100644 (file)
@@ -1321,7 +1321,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
         \Civi\Api4\Relationship::create(FALSE)
           ->addValue('contact_id_a', $contactID)
           ->addValue('contact_id_b', $orgID)
-          ->addValue('relationship_type_id', $relTypeId = CRM_Contact_BAO_RelationshipType::getEmployeeRelationshipTypeID())
+          ->addValue('relationship_type_id', CRM_Contact_BAO_RelationshipType::getEmployeeRelationshipTypeID())
           ->addValue('is_permission_a_b:name', 'View and update')
           ->execute();
       }