Merged in bugfix/HOR-2988 (pull request #5597)
HOR-2988 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
de674e443f
@@ -252,14 +252,11 @@ class Application extends BaseApplication
|
||||
|
||||
if ($this->validate()) {
|
||||
$con->begin();
|
||||
$res = $this->save();
|
||||
$con->commit();
|
||||
|
||||
$this->setAppTitleContent('#' . $maxNumber);
|
||||
$this->setAppDescriptionContent('');
|
||||
//to do: ID_CASE in translation $this->setAppTitle(G::LoadTranslation('ID_CASE') . $maxNumber);
|
||||
//Content::insertContent('APP_PROC_CODE', '', $this->getAppUid(), $lang, '');
|
||||
|
||||
$res = $this->save();
|
||||
$con->commit();
|
||||
|
||||
return $this->getAppUid();
|
||||
|
||||
@@ -209,9 +209,9 @@ class Dynaform extends BaseDynaform
|
||||
$this->setDynVersion( $aData['DYN_VERSION'] );
|
||||
if ($this->validate()) {
|
||||
$con->begin();
|
||||
$res = $this->save();
|
||||
$this->setDynTitleContent( $dynTitle );
|
||||
$this->setDynDescriptionContent( $dynDescription );
|
||||
$res = $this->save();
|
||||
$con->commit();
|
||||
|
||||
//Add Audit Log
|
||||
|
||||
@@ -106,14 +106,12 @@ class Groupwf extends BaseGroupwf
|
||||
|
||||
if ($this->validate()) {
|
||||
$con->begin();
|
||||
$res = $this->save();
|
||||
|
||||
if (isset( $aData['GRP_TITLE'] )) {
|
||||
$this->setGrpTitleContent( $aData['GRP_TITLE'] );
|
||||
} else {
|
||||
$this->setGrpTitleContent( 'Default Group Title' );
|
||||
}
|
||||
|
||||
$res = $this->save();
|
||||
$con->commit();
|
||||
return $this->getGrpUid();
|
||||
} else {
|
||||
|
||||
@@ -198,7 +198,6 @@ class Process extends BaseProcess
|
||||
|
||||
if ($this->validate()) {
|
||||
$con->begin();
|
||||
$res = $this->save();
|
||||
|
||||
if (isset( $aData['PRO_TITLE'] )) {
|
||||
$this->setProTitleContent( $aData['PRO_TITLE'] );
|
||||
@@ -212,6 +211,7 @@ class Process extends BaseProcess
|
||||
$this->setProDescriptionContent( 'Default Process Description' );
|
||||
}
|
||||
|
||||
$res = $this->save();
|
||||
$con->commit();
|
||||
|
||||
$this->memcachedDelete();
|
||||
@@ -445,7 +445,6 @@ class Process extends BaseProcess
|
||||
$this->setProDynaforms( isset( $aData['PRO_DYNAFORMS'] ) ? (is_array( $aData['PRO_DYNAFORMS'] ) ? serialize( $aData['PRO_DYNAFORMS'] ) : $aData['PRO_DYNAFORMS']) : '' );
|
||||
if ($this->validate()) {
|
||||
$con->begin();
|
||||
$res = $this->save();
|
||||
|
||||
if (isset( $aData['PRO_TITLE'] ) && trim( $aData['PRO_TITLE'] ) != '') {
|
||||
$this->setProTitleContent( $aData['PRO_TITLE'] );
|
||||
@@ -457,6 +456,8 @@ class Process extends BaseProcess
|
||||
} else {
|
||||
$this->setProDescriptionContent( 'Default Process Description' );
|
||||
}
|
||||
|
||||
$res = $this->save();
|
||||
$con->commit();
|
||||
|
||||
$this->memcachedDelete();
|
||||
|
||||
@@ -169,9 +169,9 @@ class Triggers extends BaseTriggers
|
||||
} else {
|
||||
$this->setTriParam( $aData['TRI_PARAM'] );
|
||||
}
|
||||
$result=$this->save();
|
||||
$this->setTriTitleContent($triTitle);
|
||||
$this->setTriDescriptionContent($triDescription);
|
||||
$result = $this->save();
|
||||
$con->commit();
|
||||
//Add Audit Log
|
||||
$description = "Trigger Name: ".$aData['TRI_TITLE'].", Trigger Uid: ".$triggerUid;
|
||||
|
||||
Reference in New Issue
Block a user