Replace expensive query with cheaper one
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 9 Sep 2021 22:43:37 +0000 (10:43 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 10 Sep 2021 04:45:49 +0000 (16:45 +1200)
commit965ff8f1e415944a100ffd0f9e9b3040b492b10a
treeadad6391964db101112495b0e3734665aabcf7c8
parent137020e1e088e626ea148ca081665cc7d08a6406
Replace expensive query with cheaper one

Rather than retrieve everything with a legacy function, just get what we want....

Note I commented on how silly I think it is but no change to outcome
CRM/Core/BAO/MessageTemplate.php
tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php