From 511c73cc0c131400e70fd59cadce062a3953122b Mon Sep 17 00:00:00 2001 From: imnavajas Date: Mon, 17 Jul 2023 22:30:27 +0200 Subject: [PATCH] Arreglando UI-delete de Tariba Acabado --- ci4/app/Controllers/Tarifas/Tarifaacabado.php | 2 +- .../themes/_commonPartialsBs/_alertBoxes.php | 100 ++++++++---------- .../_commonPartialsBs/_confirm2delete.php | 27 +---- .../tarifas/acabado/viewTarifaAcabadoList.php | 49 ++------- .../viewTarifapreimpresionList.php | 9 -- 5 files changed, 62 insertions(+), 125 deletions(-) diff --git a/ci4/app/Controllers/Tarifas/Tarifaacabado.php b/ci4/app/Controllers/Tarifas/Tarifaacabado.php index abfc4770..a1b145eb 100644 --- a/ci4/app/Controllers/Tarifas/Tarifaacabado.php +++ b/ci4/app/Controllers/Tarifas/Tarifaacabado.php @@ -114,7 +114,7 @@ class Tarifaacabado extends \App\Controllers\GoBaseResourceController if ($thenRedirect) : if (!empty($this->indexRoute)) : - return redirect()->to(route_to('tarifas/tarifaacabado/edit/' . $id))->with('sweet-success', $message); + return redirect()->to(site_url('tarifas/tarifaacabado/edit/' . $id))->with('sweet-success', $message); //return redirect()->to(route_to($this->indexRoute))->with('sweet-success', $message); else: return $this->redirect2listView('sweet-success', $message); diff --git a/ci4/app/Views/themes/_commonPartialsBs/_alertBoxes.php b/ci4/app/Views/themes/_commonPartialsBs/_alertBoxes.php index 0d26c166..5d5ab740 100644 --- a/ci4/app/Views/themes/_commonPartialsBs/_alertBoxes.php +++ b/ci4/app/Views/themes/_commonPartialsBs/_alertBoxes.php @@ -1,33 +1,14 @@ has('message')) { - $successMessage = session('message'); - } - if (session()->has('error')) { - $errorMessage = is_array(session('error')) ? implode(session('error')) : session('error'); - } /* // Uncomment this block if you want the errors listed line by line in the alert +if (session()->has('message')) { + $successMessage = session('message'); +} +if (session()->has('error')) { + $errorMessage = is_array(session('error')) ? implode(session('error')) : session('error'); +} /* // Uncomment this block if you want the errors listed line by line in the alert elseif (session()->has('errors')) { $errorMessage = '