Merge pull request #2288 from norahmollo/BUG-14025

BUG-14025 Ability to apply conditional show/hide when re-viewing 'partic...
This commit is contained in:
julceslauhub
2014-02-26 14:13:43 -02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -2629,7 +2629,7 @@ class XmlForm_Field_YesNo extends XmlForm_Field
}
} else {
//VIEW MODE
$html .= '<span id="form[' . $this->name . ']">';
$html .= '<span id=" ' . $this->name . ' ">';
$html .= ($value === '0') ? G::LoadTranslation( 'ID_NO_VALUE' ) : G::LoadTranslation( 'ID_YES_VALUE' );
$html .= '<input ';
$html .= 'id="form[' . $this->name . ']" ';

View File

@@ -461,6 +461,7 @@ if ($actionAjax == 'historyDynaformGridPreview') {
</script>
<?php
$_SESSION['CURRENT_DYN_UID'] = $_POST['DYN_UID'];
$_SESSION['DYN_UID_PRINT'] = $_POST['DYN_UID'];
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_POST['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view' );