BUG 5857: Solved
This commit is contained in:
@@ -32,10 +32,11 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
||||
|
||||
if( isset($_POST['function']) )
|
||||
$sfunction = $_POST['function'];
|
||||
else
|
||||
else if( isset($_POST['functions']) )
|
||||
$sfunction = $_POST['functions'];
|
||||
|
||||
if($sfunction=='lookforNameDynaform'){
|
||||
if( isset($sfunction) && $sfunction == 'lookforNameDynaform' ) {
|
||||
|
||||
$snameDyanform = urldecode($_POST['NAMEDYNAFORM']);
|
||||
$sPRO_UID = urldecode($_POST['proUid']);
|
||||
|
||||
@@ -45,6 +46,7 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
||||
$oDataset = DynaformPeer::doSelectRS($oCriteria);
|
||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$flag = true;
|
||||
|
||||
while ($oDataset->next() && $flag) {
|
||||
$aRow = $oDataset->getRow();
|
||||
|
||||
@@ -59,9 +61,8 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
||||
$oDataset1->next();
|
||||
$aRow1 = $oDataset1->getRow();
|
||||
|
||||
if($aRow1['DYNAFORMS'])$flag=false;
|
||||
|
||||
|
||||
if( $aRow1['DYNAFORMS'] )
|
||||
$flag = false;
|
||||
}
|
||||
print $flag;
|
||||
|
||||
@@ -71,7 +72,8 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
||||
if(isset($_POST['form']))
|
||||
{
|
||||
$aData = $_POST['form']; //For old process map form
|
||||
if ($aData['DYN_UID']==='') unset($aData['DYN_UID']);
|
||||
if ($aData['DYN_UID']==='')
|
||||
unset($aData['DYN_UID']);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user