PHRAS-3935 : phraseanet_local_id became instance_id (#4396)

* phraseanet_local_id patch

* display phraseanet_local_id

* phraseanet_local_id to instance_id

* update embed bumdle
This commit is contained in:
Aina Sitraka
2023-10-30 23:14:07 +03:00
committed by GitHub
parent bf76b30670
commit 23bb538246
8 changed files with 107 additions and 24 deletions

View File

@@ -35,15 +35,6 @@ class PSAdminController extends Controller
if ($form->isValid()) {
$app['conf']->set(['phraseanet-service', 'expose-service'], $form->getData());
// generate a uniq key between phraseanet service and the phraseanet instance if not exist
if(!$app['conf']->has(['phraseanet-service', 'phraseanet_local_id'])) {
$instanceKey = $this->app['conf']->get(['main', 'key']);
$phraseanetLocalId = md5($instanceKey);
$app['conf']->set(['phraseanet-service', 'phraseanet_local_id'], $phraseanetLocalId);
}
return $app->redirectPath('ps_admin', ['_fragment'=>'expose']);
}