From e708351ed80c70a04e586886786dd1a714a8856a Mon Sep 17 00:00:00 2001 From: aynsix Date: Thu, 7 Sep 2023 18:41:57 +0300 Subject: [PATCH] PHRAS-3896 --- lib/classes/patch/{418RC6PHRAS3889.php => 418RC6.php} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) rename lib/classes/patch/{418RC6PHRAS3889.php => 418RC6.php} (85%) diff --git a/lib/classes/patch/418RC6PHRAS3889.php b/lib/classes/patch/418RC6.php similarity index 85% rename from lib/classes/patch/418RC6PHRAS3889.php rename to lib/classes/patch/418RC6.php index 14aa9bf685..3b4aff11d3 100644 --- a/lib/classes/patch/418RC6PHRAS3889.php +++ b/lib/classes/patch/418RC6.php @@ -3,7 +3,7 @@ use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Core\Configuration\PropertyAccess; -class patch_418RC6PHRAS3889 implements patchInterface +class patch_418RC6 implements patchInterface { /** @var string */ private $release = '4.1.8-rc6'; @@ -66,6 +66,7 @@ private function patch_appbox(base $appbox, Application $app) /** @var PropertyAccess $conf */ $conf = $app['conf']; + // PHRAS-3889 if (!$conf->has(['workers', 'writeMetadatas', 'acceptedMimeType'])) { $defaultAcceptedMimeType = [ 'image/jpeg', @@ -77,5 +78,10 @@ private function patch_appbox(base $appbox, Application $app) $conf->set(['workers', 'writeMetadatas', 'acceptedMimeType'], $defaultAcceptedMimeType); } + + // PHRAS-3896 + if ($conf->get(['main', 'search-engine', 'options', 'populate_order']) != 'RECORD_ID') { + $conf->set(['main', 'search-engine', 'options', 'populate_order'], 'RECORD_ID'); + } } }