Details
-
Type:
Task
-
Status: Done/Fixed
-
Priority:
Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5
-
Fix Version/s: 4.5
-
Component/s: CiviMember
-
Labels:None
-
Documentation Required?:None
Description
To recreate:
- go to a contact's Memberships tab
- click "View" action
- click "Delete" button
- click "Delete" in pop-up
You'll see a 'network error' warning - but actually there's a fatal followed by warnings ...
============
Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND m.contact_id = r.contact_id_a AND m.is_test = 0) LEFT JOIN civicrm_members' at line 8, 1064
Notice: Undefined index: membership_type_id in CRM_Member_Form_MembershipView->preProcess() (line 160 of /Users/dgg/git/crm_v4.5/CRM/Member/Form/MembershipView.php).
Notice: Undefined index: contact_id in CRM_Member_Form_MembershipView->preProcess() (line 172 of /Users/dgg/git/crm_v4.5/CRM/Member/Form/MembershipView.php).
Notice: Undefined index: id in CRM_Member_Form_MembershipView->preProcess() (line 246 of /Users/dgg/git/crm_v4.5/CRM/Member/Form/MembershipView.php).
Notice: Undefined index: contact_id in CRM_Member_Form_MembershipView->preProcess() (line 249 of /Users/dgg/git/crm_v4.5/CRM/Member/Form/MembershipView.php).