CRM-17075 switch membership_type_id to use entity reference
authoreileenmcnaugton <eileen@fuzion.co.nz>
Mon, 14 Sep 2015 00:55:24 +0000 (12:55 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Mon, 14 Sep 2015 09:03:50 +0000 (21:03 +1200)
commitdf60621bc347d99e10b86a4dd73b5060ec266fed
treea5bc2bc68f2876e01838cc088ecbaa4642015550
parent8b3df6dcd4851b653860ea693a4d442c6e7be581
CRM-17075 switch membership_type_id to use entity reference

This commit also adds generic handling for changing select fields to
entity reference fields with tests to ensure previous smart group
behaviour is respected by handling within the convertFormValues function.

This reverts advanced search domain filtering to ?4.4? 4.5? behaviour which does not assume only that domain's memberships should be searched on.

It make be that domain filtering + allowing an override makes most sense. I did think the pseudoconstant & getoptions use the same
mechanism, but it seems they don't. Really they should both allow the same behaviour & override
CRM/Contact/BAO/Query.php
CRM/Core/Form/Search.php
CRM/Member/BAO/Query.php
CRM/Member/Form/Search.php
tests/phpunit/CRM/Member/BAO/QueryTest.php [new file with mode: 0644]