HOR-3803
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -39,3 +39,5 @@ build-prod.zip
|
|||||||
node_modules
|
node_modules
|
||||||
/workflow/engine/config/system-tables.ini
|
/workflow/engine/config/system-tables.ini
|
||||||
test_shared/
|
test_shared/
|
||||||
|
**/cache/
|
||||||
|
storage/
|
||||||
|
|||||||
@@ -215,7 +215,6 @@ class Roles extends BaseRoles {
|
|||||||
function createRole($aData) {
|
function createRole($aData) {
|
||||||
$con = Propel::getConnection(RolesPeer::DATABASE_NAME);
|
$con = Propel::getConnection(RolesPeer::DATABASE_NAME);
|
||||||
try {
|
try {
|
||||||
$con->begin();
|
|
||||||
$sRolCode = $aData['ROL_CODE'];
|
$sRolCode = $aData['ROL_CODE'];
|
||||||
$sRolSystem = $aData['ROL_SYSTEM'];
|
$sRolSystem = $aData['ROL_SYSTEM'];
|
||||||
$status = $fields['ROL_STATUS'] = 1 ? 'ACTIVE' : 'INACTIVE';
|
$status = $fields['ROL_STATUS'] = 1 ? 'ACTIVE' : 'INACTIVE';
|
||||||
@@ -239,6 +238,7 @@ class Roles extends BaseRoles {
|
|||||||
$obj = new Roles();
|
$obj = new Roles();
|
||||||
$obj->fromArray($aData, BasePeer::TYPE_FIELDNAME);
|
$obj->fromArray($aData, BasePeer::TYPE_FIELDNAME);
|
||||||
if ($obj->validate()) {
|
if ($obj->validate()) {
|
||||||
|
$con->begin();
|
||||||
$result = $obj->save();
|
$result = $obj->save();
|
||||||
$con->commit();
|
$con->commit();
|
||||||
$obj->setRolName($rol_name);
|
$obj->setRolName($rol_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user