Modificada redireccion por defecto en formulario de editar para que se quede en editar y no vaya al listado general

This commit is contained in:
imnavajas
2023-07-26 23:02:22 +02:00
parent d25ff9666c
commit 379d540e8b
21 changed files with 24 additions and 27 deletions

View File

@ -175,7 +175,7 @@ class Tarifaacabadolineas extends \App\Controllers\GoBaseResourceController
$tarifaAcabadoLinea->fill($sanitizedData);
$thenRedirect = true;
$thenRedirect = false;
endif;
if ($noException && $successfulResult) :
$id = $tarifaAcabadoLinea->id ?? $id;

View File

@ -171,7 +171,7 @@ class Tarifaencuadernacionlineas extends \App\Controllers\GoBaseResourceControll
$tarifaEncuadernacionLinea->fill($sanitizedData);
$thenRedirect = true;
$thenRedirect = false;
endif;
if ($noException && $successfulResult) :
$id = $tarifaEncuadernacionLinea->id ?? $id;

View File

@ -171,7 +171,7 @@ class Tarifamanipuladolineas extends \App\Controllers\GoBaseResourceController
$tarifaManipuladoLinea->fill($sanitizedData);
$thenRedirect = true;
$thenRedirect = false;
endif;
if ($noException && $successfulResult) :
$id = $tarifaManipuladoLinea->id ?? $id;

View File

@ -198,7 +198,7 @@ class Tarifasencuadernacion extends \App\Controllers\GoBaseResourceController
return $this->redirect2listView('sweet-success', $message);
endif;
else:
$this->viewData['successMessage'] = $message;
$this->session->setFlashData('sweet-success', $message);
endif;
endif; // $noException && $successfulResult

View File

@ -198,7 +198,7 @@ class Tarifasmanipulado extends \App\Controllers\GoBaseResourceController
return $this->redirect2listView('sweet-success', $message);
endif;
else:
$this->viewData['successMessage'] = $message;
$this->session->setFlashData('sweet-success', $message);
endif;
endif; // $noException && $successfulResult