Fixed change log variables for the correct case

Fixed Observations

Fixed observations
This commit is contained in:
Martin Laguna
2022-09-30 11:35:45 -04:00
parent 2c946f8ee8
commit 30399181bf
3 changed files with 29 additions and 14 deletions

View File

@@ -481,13 +481,22 @@ class Ajax
public function changeLogHistory()
{
global $G_PUBLISH;
$idHistory = sprintf(
'%s_%s_%s',
$_SESSION['PROCESS'],
$_SESSION['APPLICATION'],
$_SESSION['TASK']
);
if (isset($_REQUEST['PRO_UID']) && isset($_REQUEST['APP_UID']) && isset($_REQUEST['TAS_UID'])) {
$idHistory = sprintf(
'%s_%s_%s',
$_REQUEST['PRO_UID'],
$_REQUEST['APP_UID'],
$_REQUEST['TAS_UID']
);
} else {
$idHistory = sprintf(
'%s_%s_%s',
$_SESSION['PROCESS'],
$_SESSION['APPLICATION'],
$_SESSION['TASK']
);
}
$oHeadPublisher = headPublisher::getSingleton();
$conf = new Configurations();