mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix : contemplat que presupuesto_id es null
This commit is contained in:
@ -47,9 +47,12 @@ class ConfigErrores extends BaseResourceController
|
||||
}
|
||||
public function get_error_presupuesto(int $error_presupuesto_id)
|
||||
{
|
||||
$data = $this->errorPresupuestoModel->getQueryDatatable()
|
||||
->where("presupuesto_errores.id", $error_presupuesto_id)->get()->getResultObject()[0];
|
||||
return $this->response->setJSON(["data" => $data]);
|
||||
$data = $this->errorPresupuestoModel->getErrorPresupuestoForm($error_presupuesto_id);
|
||||
if(isset($data[0])){
|
||||
return $this->response->setJSON(["data" => $data[0]]);
|
||||
}else{
|
||||
return $this->response->setJSON(["data" => []]);
|
||||
}
|
||||
}
|
||||
public function update_error_presupuesto(int $error_presupuesto_id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user