diff --git a/app/control/controllers/CreateControllers.class.php b/app/control/controllers/CreateControllers.class.php index 7f049b5d..12d409e6 100644 --- a/app/control/controllers/CreateControllers.class.php +++ b/app/control/controllers/CreateControllers.class.php @@ -199,8 +199,7 @@ public function addExecProcedure() $this->addLine(); $this->addLine(ESP.'public function execProcedure( '.$this->tableRefVO.' $objVo )'); $this->addLine(ESP.'{'); - $this->addLine(ESP.ESP.'$result = $this->dao->execProcedure( $objVo );'); - $this->addLine(ESP.ESP.'FormDinHelper::debug($result);'); + $this->addLine(ESP.ESP.'$result = $this->dao->execProcedure( $objVo );'); $this->addLine(ESP.ESP.'return $result;'); $this->addLine(ESP.'}'); } diff --git a/app/control/controllers/TCreateForm.class.php b/app/control/controllers/TCreateForm.class.php index 0f599700..28ca2efe 100644 --- a/app/control/controllers/TCreateForm.class.php +++ b/app/control/controllers/TCreateForm.class.php @@ -629,7 +629,8 @@ public function addMethod_onExecute($qtdTab) $this->addLine($qtdTab.ESP.ESP.ESP.'$this->frm->addMessage( _t(\'Record saved\') );'); $this->addLine($qtdTab.ESP.ESP.ESP.'//$this->frm->clearFields();'); $this->addLine($qtdTab.ESP.ESP.'}else{'); - $this->addLine($qtdTab.ESP.ESP.ESP.'$this->frm->addMessage($resultado);'); + $this->addLine($qtdTab.ESP.ESP.ESP.'//$this->frm->addMessage($resultado);'); + $this->addLine($qtdTab.ESP.ESP.ESP.'FormDinHelper::debug($resultado,\'$resultado\');'); $this->addLine($qtdTab.ESP.ESP.'}'); $this->addLine($qtdTab.ESP.'}catch (Exception $e){'); $this->addLine($qtdTab.ESP.ESP.'new TMessage(TFormDinMessage::TYPE_ERROR, $e->getMessage());');