DAO - Centralize logic to derive unique name from label
authorColeman Watts <coleman@civicrm.org>
Wed, 19 Jan 2022 02:45:33 +0000 (21:45 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 20 Jan 2022 17:29:38 +0000 (12:29 -0500)
commiteba57f7d2b24b26c968ce81cfadf9d35f875182b
treedb944cd6f6a4d9ddfd1933950628b3e6994ac2cc
parenta8694e574a3d2f3d36f71ddc7b931ac40d33a378
DAO - Centralize logic to derive unique name from label

This function checks db indices to enforce uniqueness of "name" column
when creating a new record via the `DAO::writeRecord()` method.
CRM/Contact/BAO/SavedSearch.php
CRM/Core/DAO.php
ext/search_kit/search_kit.php
ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchDisplayTest.php