Commit b52eb16a authored by Charlotte Bataille's avatar Charlotte Bataille
Browse files

fix/19929 : debug search form

parent a2a70b39
......@@ -1625,6 +1625,15 @@ class organization
{
$currentService = \laabs::getToken("ORGANIZATION");
$transaction = false;
if (isset(\laabs::getConfiguration("medona")['transaction'])) {
$transaction = (bool) \laabs::getConfiguration("medona")['transaction'];
}
if (!$transaction) {
return $this->todisplay();
}
$ownerOriginatorOrgs = $this->getOwnerOrgsByRole($currentService, 'originator');
$originators = [];
foreach ($ownerOriginatorOrgs as $org) {
......
......@@ -905,8 +905,7 @@
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('orgName'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
prefetch: {
// url: '/organizations/todisplay?orgUnit=true',
url: '/originator',
url: '/organizations/todisplay?orgUnit=true',
ttl: '0'
},
limit: 100
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment