I solved the issue PM-1532 informacion de History dynaform

This commit is contained in:
Paula V. Quispe
2015-03-27 17:59:50 -04:00
parent c2d32d4f59
commit 19ffc1c26f
6 changed files with 6 additions and 5 deletions

View File

@@ -130,6 +130,7 @@ class AppHistory extends BaseAppHistory
$c->add(AppHistoryPeer::PRO_UID, $PRO_UID);
$c->add(AppHistoryPeer::APP_UID, $APP_UID);
$c->add(AppHistoryPeer::TAS_UID, $TAS_UID);
if ((isset($DYN_UID))&&($DYN_UID!="")) {
$c->add(AppHistoryPeer::DYN_UID, $DYN_UID);
}

View File

@@ -851,7 +851,7 @@ class Ajax
$_POST["DYN_UID"] = $_REQUEST["DYN_UID"];
$G_PUBLISH = new Publisher();
$FieldsHistory = unserialize($_SESSION["HISTORY_DATA"]);
$FieldsHistory = $_SESSION["HISTORY_DATA"];
$Fields["APP_DATA"] = $FieldsHistory[$_POST["HISTORY_ID"]]; //isset($FieldsHistory[$_POST["HISTORY_ID"]])? $FieldsHistory[$_POST["HISTORY_ID"]] : "";
$Fields["APP_DATA"]["__DYNAFORM_OPTIONS"]["PREVIOUS_STEP_LABEL"] = "";
$Fields["APP_DATA"]["__DYNAFORM_OPTIONS"]["NEXT_STEP_LABEL"] = "";

View File

@@ -383,7 +383,7 @@ if ($actionAjax == 'dynaformChangeLogViewHistory') {
global $G_PUBLISH;
$G_PUBLISH = new Publisher();
$FieldsHistory = unserialize( $_SESSION['HISTORY_DATA'] );
$FieldsHistory = $_SESSION['HISTORY_DATA'];
$Fields['APP_DATA'] = $FieldsHistory[$_POST['HISTORY_ID']];
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';

View File

@@ -549,7 +549,7 @@ if ($actionAjax == 'dynaformChangeLogViewHistory') {
global $G_PUBLISH;
$G_PUBLISH = new Publisher();
$FieldsHistory = unserialize( $_SESSION['HISTORY_DATA'] );
$FieldsHistory = $_SESSION['HISTORY_DATA'];
$Fields['APP_DATA'] = $FieldsHistory[$_POST['HISTORY_ID']];
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';

View File

@@ -700,7 +700,7 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
break;
case 'showDynaformHistory':
$G_PUBLISH = new Publisher();
$FieldsHistory = unserialize( $_SESSION['HISTORY_DATA'] );
$FieldsHistory = $_SESSION['HISTORY_DATA'];
$Fields['APP_DATA'] = $FieldsHistory[$_POST['HISTORY_ID']];
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';

View File

@@ -172,7 +172,7 @@ if (!isset($changedValues)) {
$tpl->assign("noResults", G::LoadTranslation("ID_NO_RECORDS_FOUND"));
}
$_SESSION['HISTORY_DATA'] = serialize($historyData);
$_SESSION['HISTORY_DATA'] = $historyData;
$tpl->gotoBlock("_ROOT");
$tpl->printToScreen();