fixed DB connection issue,added EDIT process permission option
This commit is contained in:
@@ -158,6 +158,10 @@ if ( isset ($_REQUEST['action']) ) {
|
||||
$sOutput = $oTask->update($aData);
|
||||
echo $sOutput;
|
||||
break;
|
||||
case 'editObjectPermission':
|
||||
// we also need the process uid variable for the function.
|
||||
$oProcessMap->editObjectPermission($oData->op_uid,$oData->pro_uid);
|
||||
break;
|
||||
case 'triggersList':
|
||||
$sOutput = $oProcessMap->getTriggers($oData->pro_uid);
|
||||
$sOutput = $oJSON->encode($sOutput);
|
||||
|
||||
@@ -61,6 +61,11 @@ switch($_GET['action'])
|
||||
array_shift($rows);
|
||||
break;
|
||||
|
||||
case 'editObjectPermission':
|
||||
$rows = $oProcessMap->editExtObjectPermission($_GET['op_uid'],$_GET['pid']);
|
||||
array_shift($rows);
|
||||
break;
|
||||
|
||||
case 'editOutputDocument':
|
||||
require_once 'classes/model/OutputDocument.php';
|
||||
$oOutputDocument = new OutputDocument();
|
||||
@@ -195,6 +200,7 @@ switch($_GET['action'])
|
||||
$rows[$key] = 'Work Days';
|
||||
else if($key == 'TAS_TYPE_DAY' && $value == '2')
|
||||
$rows[$key] = 'Calendar Days';
|
||||
|
||||
if($key == 'TAS_TYPE' && $value == 'NORMAL')
|
||||
$rows[$key] = false;
|
||||
else if($key == 'TAS_TYPE' && $value == 'ADHOC')
|
||||
@@ -214,4 +220,4 @@ switch($_GET['action'])
|
||||
|
||||
$result = $tmpData;
|
||||
echo $result;
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -36,6 +36,9 @@ if( isset($_POST['action']) ){
|
||||
throw new Exception('dbconnections Fatal error, No action defined!...');
|
||||
}
|
||||
|
||||
if(isset($_POST['PROCESS']))
|
||||
$_SESSION['PROCESS'] = $_POST['PROCESS'];
|
||||
|
||||
#Global Definitions
|
||||
require_once 'classes/model/DbSource.php';
|
||||
require_once 'classes/model/Content.php';
|
||||
|
||||
Reference in New Issue
Block a user