mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
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:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user