Simplify CRM_Core_BAO_Location::createLocBlock by moving eventLocation specific handl...
authoreileen <emcnaughton@wikimedia.org>
Thu, 24 Sep 2020 00:49:11 +0000 (12:49 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 24 Sep 2020 04:32:13 +0000 (16:32 +1200)
commit531b6c9e4a96e5212dc1a637d6efe218ff74aedd
tree18ecf508d37ebba31429652bbf48aeef55bcf103
parent41c9d14702af1c587aadfb3fe1e1b4bc32ed9f15
Simplify CRM_Core_BAO_Location::createLocBlock by moving eventLocation specific handling back to the class

On grepping universe we find entity is only passed into
CRM_Core_BAO_Location::createLocBlock from this one place in the code - ergo we can
do the handling for it on that class & not in the shared code

Test cover added in preparation for this to CRM_Event_Form_ManageEvent_LocationTest
CRM/Core/BAO/Location.php
CRM/Event/Form/ManageEvent/Location.php
tests/phpunit/CRM/Core/BAO/LocationTest.php