Fix OptionValue BAO to call pre/post hooks to prevent force-reset of managed entities
authorColeman Watts <coleman@civicrm.org>
Thu, 7 Apr 2022 19:40:30 +0000 (15:40 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 7 Apr 2022 19:40:30 +0000 (15:40 -0400)
commit2f0b9dc9bbf997624b77b7bb30187167bac33aeb
tree355a35e6aab8e4c0b6918c5da7968878b656d77c
parent495e2f97bb3bad98c4092aa605fe88a6d80f0317
Fix OptionValue BAO to call pre/post hooks to prevent force-reset of managed entities

Managed entities rely on pre/post hooks being called in order to track whether an entity
has been modified. Without those hooks OptionValues were being force-reverted by the
managed system even when the 'update' mode was set to 'unmodified', which is supposed
to defer to user modifications.
CRM/Core/BAO/OptionValue.php
tests/phpunit/api/v4/Entity/ManagedEntityTest.php