Fix legacy custom searches to not use hacky method to access protected property on...
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Sep 2023 23:58:30 +0000 (11:58 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 19 Sep 2023 00:08:21 +0000 (12:08 +1200)
commit37448c483b0ebdefc32fac6beef0573141bf5c64
tree11d52e8c9e2502e14e8d7bee35dc0f6113d5a179
parent606c43ac0573e169ac79b6d467fec2debe6eb876
Fix legacy custom searches to not use hacky method to access protected property on core class

This avoids passing the form object to a function simply to extract the
links value & instead only calls the form object is it actually implements
the links function - which they basically don't...

This still works - ie I checked the actions are still available in custom searches
but respects the principle that protected variables are not public
ext/legacycustomsearches/CRM/Contact/Form/Search/Custom.php
ext/legacycustomsearches/CRM/Contact/Form/Search/Custom/Base.php