correccion lista padre

parent a9ccb60b
......@@ -396,7 +396,7 @@ class ListadoController extends AbstractController {
$this->manager->flush();
if ($lista) {
if($listaPadre != null) {
if ($listaPadre != null) {
if ($padreAnterior == "none") {
$relacionListas = new PluRelacionesListas();
$relacionListas->setRliPadre($listaPadre);
......@@ -432,12 +432,11 @@ class ListadoController extends AbstractController {
$this->manager->flush();
}
}
$log->debug("Lista " . $lista->getLisId() . " editada...");
$json->setData(array('success' => 'Listado Editado Correctamente.'));
$json->setStatusCode(JsonResponse::HTTP_OK);
return $json;
}
$log->debug("Lista " . $lista->getLisId() . " editada...");
$json->setData(array('success' => 'Listado Editado Correctamente.'));
$json->setStatusCode(JsonResponse::HTTP_OK);
return $json;
} else {
$log->error("Ha ocurrido un error al tratar de editar la lista...");
$json->setData(array('errors' => 'Estimado usuario, en estos momentos no podemos atender su solicitud. Intente más tarde por favor.'));
......
Markdown is supported
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