Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Network Error' when creating membership type from contact membership tab #12700

Conversation

vinuvarshith
Copy link
Contributor

Overview

'Network Error' when creating membership type from contact membership tab.

To replicate:
Create a contact -> go to membership tab -> new membership
Select membership organisation and type -> choose priceset
Then select manual membership and price from Membership Organisation and Type
At this point the network error and invalid entity filter warning appears

Technical Details

In the above form null is used as 'null' (with quotes) which is not actually null because it is treated as a string with value 'null'.

@civibot
Copy link

civibot bot commented Aug 20, 2018

(Standard links)

@vinuvarshith vinuvarshith changed the title BASW-240: Change Null Strings To Null Values As Null Strings Are Not Actually Null BASW-240: 'Network Error' when creating membership type from contact membership tab Aug 20, 2018
@colemanw
Copy link
Member

Unrelated fail. @civicrm-builder retest this please.

@jitendrapurohit
Copy link
Contributor

The change done in this PR fixes the issue.

Noting that we also use null string to set subtype to NULL at the form level. Eg https://github.com/civicrm/civicrm-core/blob/master/CRM/Custom/Form/CustomData.php#L100

I tested by creating multiple custom fields for different membership type and altered the selection on new membership form. The custom fields were shown/hidden properly. Confirming that I don't find any problems with this change of 'null' to null. Hence approving it from my side.

@jitendrapurohit
Copy link
Contributor

test this please

@mattwire
Copy link
Contributor

@jitendrapurohit has reviewed and tested. I've looked at the code and agree with the changes - ok to merge.

@jitendrapurohit
Copy link
Contributor

ping @eileenmcnaughton

@eileenmcnaughton eileenmcnaughton merged commit 99dd802 into civicrm:master Aug 27, 2018
@eileenmcnaughton eileenmcnaughton changed the title BASW-240: 'Network Error' when creating membership type from contact membership tab 'Network Error' when creating membership type from contact membership tab Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants