From 6a3a10c7e8c230b2723b687f1f0382fce6f66e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Sat, 7 Jun 2025 11:26:52 +0200 Subject: [PATCH] =?UTF-8?q?solucionado=20el=20problema=20que=20al=20borrar?= =?UTF-8?q?=20una=20fecha=20de=20la=20OT=20se=20quedaba=20en=20cach=C3=A9?= =?UTF-8?q?=20el=20objeto=20anterior=20y=20no=20actualizaba=20el=20progres?= =?UTF-8?q?o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci4/app/Controllers/Produccion/Ordentrabajo.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ci4/app/Controllers/Produccion/Ordentrabajo.php b/ci4/app/Controllers/Produccion/Ordentrabajo.php index a244e000..687e88d0 100755 --- a/ci4/app/Controllers/Produccion/Ordentrabajo.php +++ b/ci4/app/Controllers/Produccion/Ordentrabajo.php @@ -169,6 +169,7 @@ class Ordentrabajo extends BaseController if ($validated) { $validatedData = $bodyData; $r = $this->produccionService->emptyOrdenTrabajoDate($validatedData['orden_trabajo_id'], $validatedData['name']); + $this->produccionService->init($validatedData['orden_trabajo_id']); // Re-init service to update the state of the OT return $this->response->setJSON(["message" => lang("App.global_alert_save_success"), "status" => $r, "user" => auth()->user(), "data" => $bodyData]); } else { return $this->response->setJSON(["errors" => $this->validation->getErrors()])->setStatusCode(400);