[api edispatcher] fix #31881

This commit is contained in:
Pierre Cadeot 2021-03-10 18:12:13 +04:00
parent d0a7f05f50
commit eb3ed083e7
1 changed files with 0 additions and 1 deletions

View File

@ -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;
} }