BUG 9572 Print Dynaform is not working when a case is open... SOLVED
- Undefined variable used. - Was validated using using the variable.
This commit is contained in:
@@ -318,6 +318,8 @@
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = '#';
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['DYNUIDPRINT'] = $_POST['DYN_UID'];
|
||||
|
||||
$_SESSION['DYN_UID_PRINT'] = $_POST['DYN_UID'];
|
||||
$G_PUBLISH->AddContent('dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_POST['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view');
|
||||
|
||||
|
||||
@@ -27,10 +27,18 @@ try {
|
||||
require_once 'classes/model/Dynaform.php';
|
||||
require_once 'classes/model/Process.php';
|
||||
|
||||
|
||||
$currentDynUid = '';
|
||||
if (isset($_GET['DYNUIDPRINT']) && $_GET['DYNUIDPRINT'] != '') {
|
||||
$currentDynUid = $_GET['DYNUIDPRINT'];
|
||||
} elseif (isset($_SESSION['DYN_UID_PRINT'])) {
|
||||
$currentDynUid = $_SESSION['DYN_UID_PRINT'];
|
||||
} elseif (isset($_SESSION['CURRENT_DYN_UID'])) {
|
||||
$currentDynUid = $_SESSION['CURRENT_DYN_UID'];
|
||||
}
|
||||
|
||||
$oDynaform = new Dynaform();
|
||||
$aDyn = $oDynaform->load($_SESSION['CURRENT_DYN_UID']);
|
||||
$aDyn = $oDynaform->load($currentDynUid);
|
||||
|
||||
G::LoadClass('case');
|
||||
$oCase = new Cases();
|
||||
|
||||
@@ -75,9 +83,7 @@ try {
|
||||
$array['PROCESS'] = G::LoadTranslation('ID_PROCESS');
|
||||
$array['DATELABEL'] = G::LoadTranslation('DATE_LABEL');
|
||||
|
||||
$aDyn['DYN_UID'] = (isset($_SESSION['DYN_UID_PRINT']) && $_SESSION['DYN_UID_PRINT'] != '')
|
||||
? $_SESSION['DYN_UID_PRINT']
|
||||
: $aDyn['DYN_UID'];
|
||||
$aDyn['DYN_UID'] = $currentDynUid;
|
||||
if ($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_PrintViewTitle', '', '', $array);
|
||||
}
|
||||
|
||||
@@ -207,6 +207,7 @@
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = $aNextStep['PAGE'];
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = G::loadTranslation('ID_NEXT_STEP');
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PHPSESSID'] = @session_id();
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['DYNUIDPRINT'] = $_GET['UID'];
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptCode("
|
||||
|
||||
Reference in New Issue
Block a user