PM-3553 "0018427: Un usuario asignado como Process Supervisor no..." SOLVED

Issue:
    0018427: Un usuario asignado como Process Supervisor no puede editar los dynaforms
Cause:
    En este modulo se define el DynaForm como "view"
Solution:
    Se completa en este modulo la edicion y guardado de datos del DynaForm
This commit is contained in:
Victor Saisa Lopez
2015-09-11 15:38:06 -04:00
committed by Enrique Ponce De Leon
parent 8b39e13166
commit 43d3ec1384
4 changed files with 71 additions and 11 deletions

View File

@@ -46,14 +46,10 @@ try {
* DYN_VERSION is 1: classic Dynaform,
* DYN_VERSION is 2: responsive form, Pmdynaform.
*/
$a = new Criteria("workflow");
$a->addSelectColumn(DynaformPeer::DYN_VERSION);
$a->add(DynaformPeer::DYN_UID, $_GET['UID'], Criteria::EQUAL);
$a = ProcessPeer::doSelectRS($a);
$a->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$a->next();
$row = $a->getRow();
$swpmdynaform = isset($row) && $row["DYN_VERSION"] == 2;
$dynaForm = DynaformPeer::retrieveByPK($_GET["UID"]);
$swpmdynaform = !is_null($dynaForm) && $dynaForm->getDynVersion() == 2;
if ($swpmdynaform) {
$pmdynaform = $_POST["form"];
}
@@ -149,7 +145,7 @@ try {
$aRow = false;
}
}
if ($aRow) {
foreach ($aValues as $sKey => $sValue) {
if ($sKey != $oForm->fields[$sField]->pmfield) {