Fixes dev/core#2984 - Give clear error message when entity's component is disabled
authorColeman Watts <coleman@civicrm.org>
Thu, 9 Dec 2021 00:47:38 +0000 (19:47 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 9 Dec 2021 00:47:38 +0000 (19:47 -0500)
commit420a0aa9283395805d1449d2dcc2d3f9a86b8028
treea4a4328e13ad4bf3fcecf66b9ad6b21d8ff8359a
parentd50cef9d57d6b2678c3e24756953d6ba49521c13
Fixes dev/core#2984 - Give clear error message when entity's component is disabled

Previously, using an API from a disabled component would fail in unexpected ways
with cryptic error messages. Now it's clearly not allowed.
Civi/API/Request.php
tests/phpunit/api/v4/Entity/EntityTest.php