PM-1111 "16332: Grids with same name" SOLVED

Issue:
    16332: Grids with same name
Cause:
    No se valida si existe un Grid con el mismo nombre
Solution:
    Al "Copy/Import DynaForm" si este tiene incrustado un Grid y el titulo del mismo
    ya existe en el proceso; al titulo del Grid se le concatena entre parentesis el titulo
    del nuevo DynaForm
This commit is contained in:
Victor Saisa Lopez
2014-12-11 16:38:59 -04:00
parent dcdddef799
commit 0f235c776f
2 changed files with 6 additions and 7 deletions

View File

@@ -602,15 +602,15 @@ class DynaForm
$dynGrdDescriptionCopyImport = $row["CON_VALUE"];
//Create Grid
$dynaFormGrid = new \Dynaform();
$arrayDataAux = array(
"PRO_UID" => $processUid,
"DYN_TITLE" => $dynGrdTitleCopyImport,
"DYN_TITLE" => $dynGrdTitleCopyImport . (($this->existsTitle($processUid, $dynGrdTitleCopyImport))? " (" . $arrayData["DYN_TITLE"] . ")" : ""),
"DYN_DESCRIPTION" => $dynGrdDescriptionCopyImport,
"DYN_TYPE" => "grid"
);
$dynaFormGrid = new \Dynaform();
$dynaFormGridUid = $dynaFormGrid->create($arrayDataAux);
//Copy files of the DynaForm Grid
@@ -1124,6 +1124,5 @@ class DynaForm
throw $e;
}
}
}