MVC - match on multivalued (#6152)

This commit is contained in:
kulikov-a 2022-12-02 11:09:02 +03:00 committed by GitHub
parent 8e5b0a6c76
commit 47bbab96dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ abstract class ApiMutableModelControllerBase extends ApiControllerBase
$configObj = Config::getInstance()->object();
$usages = array();
// find uuid's in our config.xml
foreach ($configObj->xpath("//text()[.='{$uuid}']") as $node) {
foreach ($configObj->xpath("//text()[contains(.,'{$uuid}')]") as $node) {
$referring_node = $node->xpath("..")[0];
if (!empty($referring_node->attributes()['uuid'])) {
// this looks like a model node, try to find module name (first tag with version attribute)