mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
modificacion finalizada y testeada
This commit is contained in:
@ -148,9 +148,9 @@ class PapelImpresionTipologiaModel extends \App\Models\GoBaseModel
|
||||
->where("papel_impresion_id", $data["papel_impresion_id"])
|
||||
->where("tipo", $data["tipo"]);
|
||||
|
||||
|
||||
if ($builder->countAllResults() > 0){
|
||||
if($builder->get()->getResultObject()[0]->id!=$id){
|
||||
if ($builder->countAllResults(false) > 0){
|
||||
$found_id = $builder->get()->getResultObject()[0]->id;
|
||||
if($found_id != $id){
|
||||
return lang('ImpresionTipologias.validation.error_tipo_duplicado');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user