Skip to content

Commit

Permalink
PHRAS-3896
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix committed Sep 7, 2023
1 parent f63bb33 commit e708351
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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',
Expand All @@ -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');
}
}
}

0 comments on commit e708351

Please sign in to comment.