[api edispatcher] fix #31881
This commit is contained in:
parent
d0a7f05f50
commit
eb3ed083e7
|
@ -804,7 +804,6 @@ $api('$id',data);";
|
||||||
$altitem=$em->getRepository('CadolesPortalBundle:Item')->findOneBy(["url"=>$favurl."?gestion_edispatcher=locale"]);
|
$altitem=$em->getRepository('CadolesPortalBundle:Item')->findOneBy(["url"=>$favurl."?gestion_edispatcher=locale"]);
|
||||||
if(!$altitem) {
|
if(!$altitem) {
|
||||||
$output["error"]="item with url=$favurl(?gestion_edispatcher=locale) not found";
|
$output["error"]="item with url=$favurl(?gestion_edispatcher=locale) not found";
|
||||||
return new Response(json_encode($output), 400);
|
|
||||||
} else {
|
} else {
|
||||||
$item = $altitem;
|
$item = $altitem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue