Merged in bugfix/PMCORE-4065 (pull request #8670)
PMCORE-4065 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
@@ -353,23 +353,32 @@ class DynaformEditorAjax extends DynaformEditor implements IDynaformEditorAjax
|
|||||||
/**
|
/**
|
||||||
* Get properties of the dynaForm
|
* Get properties of the dynaForm
|
||||||
*
|
*
|
||||||
* @param file $A
|
* @param file $fileA
|
||||||
* @param string $DYN_UID
|
* @param string $dynUid
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_properties($A, $DYN_UID)
|
public static function get_properties($fileA, $dynUid)
|
||||||
{
|
{
|
||||||
$file = G::decrypt($A, URL_KEY);
|
$file = G::decrypt($fileA, URL_KEY);
|
||||||
$tmp = self::_getTmpData();
|
$tmp = self::_getTmpData();
|
||||||
if (!(isset($tmp['Properties']) && isset($tmp['useTmpCopy']))) {
|
if (!(isset($tmp['Properties']) && isset($tmp['useTmpCopy']))) {
|
||||||
$dynaform = new Dynaform();
|
$dynaform = new Dynaform();
|
||||||
$dynaform->load($DYN_UID);
|
$dynaform->load($dynUid);
|
||||||
$form = new Form($file, PATH_DYNAFORM, SYS_LANG, true);
|
$form = new Form($file, PATH_DYNAFORM, SYS_LANG, true);
|
||||||
$Properties = array('A' => $A, 'DYN_UID' => $dynaform->getDynUid(), 'PRO_UID' => $dynaform->getProUid(), 'DYN_TITLE' => $dynaform->getDynTitle(), 'DYN_TYPE' => $dynaform->getDynType(), 'DYN_DESCRIPTION' => $dynaform->getDynDescription(), 'WIDTH' => $form->width,
|
$properties = [
|
||||||
//'ENABLETEMPLATE'=> $form->enableTemplate,
|
'A' => $fileA,
|
||||||
'MODE' => $form->mode, 'PRINTDYNAFORM' => $form->printdynaform, 'ADJUSTGRIDSWIDTH' => $form->adjustgridswidth, 'NEXTSTEPSAVE' => $form->nextstepsave
|
'DYN_UID' => $dynaform->getDynUid(),
|
||||||
);
|
'PRO_UID' => $dynaform->getProUid(),
|
||||||
$tmp['Properties'] = $Properties;
|
'DYN_TITLE' => $dynaform->getDynTitle(),
|
||||||
|
'DYN_TYPE' => $dynaform->getDynType(),
|
||||||
|
'DYN_DESCRIPTION' => $dynaform->getDynDescription(),
|
||||||
|
'WIDTH' => $form->width,
|
||||||
|
'MODE' => $form->mode,
|
||||||
|
'PRINTDYNAFORM' => $form->printdynaform,
|
||||||
|
'ADJUSTGRIDSWIDTH' => $form->adjustgridswidth,
|
||||||
|
'NEXTSTEPSAVE' => $form->nextstepsave
|
||||||
|
];
|
||||||
|
$tmp['Properties'] = $properties;
|
||||||
self::_setTmpData($tmp);
|
self::_setTmpData($tmp);
|
||||||
} else {
|
} else {
|
||||||
$form = new Form($file, PATH_DYNAFORM, SYS_LANG, true);
|
$form = new Form($file, PATH_DYNAFORM, SYS_LANG, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user