From 5deb41d8fb57df7e3bd6912871bb2dc3a85dfae0 Mon Sep 17 00:00:00 2001 From: Bjverde Date: Tue, 27 Sep 2022 21:10:28 -0300 Subject: [PATCH] =?UTF-8?q?:bug:=20#118=20corre=C3=A7=C3=A3o=20gera=C3=A7?= =?UTF-8?q?=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/CreateControllers.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/CreateControllers.class.php b/controllers/CreateControllers.class.php index d5f2448..0d52332 100644 --- a/controllers/CreateControllers.class.php +++ b/controllers/CreateControllers.class.php @@ -156,7 +156,7 @@ private function addSave() $this->addLine(ESP.'{'); $this->addLine(ESP.ESP.'$result = null;'); $this->addLine(ESP.ESP.'if( $objVo->get'.$columunPK.'() ) {'); - $this->addLine(ESP.ESP.'$this->validatePkNotExist( $id );'); + $this->addLine(ESP.ESP.ESP.'$this->validatePkNotExist( $objVo->get'.$columunPK.'() );'); $this->addLine(ESP.ESP.ESP.'$result = $this->dao->update( $objVo );'); $this->addLine(ESP.ESP.'} else {'); $this->addLine(ESP.ESP.ESP.'$result = $this->dao->insert( $objVo );');