Merged master into dashboards2
This commit is contained in:
@@ -1348,13 +1348,15 @@ class Bpmn extends Handler
|
|||||||
$oCriteria->add( \BpmnFlowPeer::FLO_POSITION, $iPosition, '>' );
|
$oCriteria->add( \BpmnFlowPeer::FLO_POSITION, $iPosition, '>' );
|
||||||
$oDataset = \BpmnFlowPeer::doSelectRS( $oCriteria );
|
$oDataset = \BpmnFlowPeer::doSelectRS( $oCriteria );
|
||||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
$oDataset->next();
|
while ($oDataset->next()) {
|
||||||
$aRow = $oDataset->getRow();
|
$aRow = $oDataset->getRow();
|
||||||
$oCriteria2 = new Criteria('workflow');
|
$newPosition = ((int)$aRow['FLO_POSITION'])-1;
|
||||||
$oCriteria2->add( \BpmnFlowPeer::FLO_POSITION, $aRow['FLO_POSITION'] - 1);
|
$oCriteriaTemp = new Criteria( 'workflow' );
|
||||||
BasePeer::doUpdate($oCriteria, $oCriteria2, $con);
|
$oCriteriaTemp->add( \BpmnFlowPeer::FLO_UID, $aRow['FLO_UID'] );
|
||||||
$oDataset->next();
|
$oCriteria2 = new Criteria('workflow');
|
||||||
|
$oCriteria2->add(\BpmnFlowPeer::FLO_POSITION, $newPosition);
|
||||||
|
BasePeer::doUpdate($oCriteriaTemp, $oCriteria2, $con);
|
||||||
|
}
|
||||||
} catch (Exception $oException) {
|
} catch (Exception $oException) {
|
||||||
throw $oException;
|
throw $oException;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,8 +68,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{else}
|
{else}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="FormLabel" width="100"></td>
|
<td class="FormFieldContent" colspan="2" style="text-align: center">{$data.NEXT_TASK.TAS_TITLE}{$data.NEXT_TASK.TAS_HIDDEN_FIELD}</td>
|
||||||
<td class="FormFieldContent">{$data.NEXT_TASK.TAS_TITLE}{$data.NEXT_TASK.TAS_HIDDEN_FIELD}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
@@ -93,8 +92,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{else}
|
{else}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="FormLabel" width="100"></td>
|
<td class="FormFieldContent" colspan="2" style="text-align: center">{$data.NEXT_TASK.USR_HIDDEN_FIELD}</td>
|
||||||
<td class="FormFieldContent">{$data.NEXT_TASK.USR_HIDDEN_FIELD}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user