PMCORE-2827 3.6.0 Community > New UI does not work correctly

This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-02-09 14:01:32 -04:00
parent d42c73172a
commit 072b9beffc
2 changed files with 42 additions and 8 deletions

View File

@@ -30,13 +30,23 @@ if (isset($_GET['ux'])) {
if (isset($_GET['ux'])) {
echo 'if (typeof window.parent.ux_env != \'undefined\') {';
}
echo ' parent.parent.postMessage("redirect=todo","*");';
/*----------------------------------********---------------------------------*/
if (true) {
echo ' parent.parent.postMessage("redirect=todo","*");';
} else {
/*----------------------------------********---------------------------------*/
echo " window.parent.location.href = '$url';";
/*----------------------------------********---------------------------------*/
}
/*----------------------------------********---------------------------------*/
if (isset($_GET['ux'])) {
/*----------------------------------********---------------------------------*/
if (PMLicensedFeatures::getSingleton()->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09') && $statusPMGmail) {
echo '} else { window.parent.location.href = \''.$pathDerivateGmail.'\'; }';
} else {
/*----------------------------------********---------------------------------*/
/*----------------------------------********---------------------------------*/
if (true) {
echo '} else {
if (parent.parent.postMessage) {
parent.parent.postMessage("redirect=todo","*");
@@ -44,6 +54,12 @@ if (isset($_GET['ux'])) {
window.parent.location.href = \'casesListExtJs\';
}
}';
} else {
/*----------------------------------********---------------------------------*/
echo '} else { window.parent.location.href = \'casesListExtJs\'; }';
/*----------------------------------********---------------------------------*/
}
/*----------------------------------********---------------------------------*/
/*----------------------------------********---------------------------------*/
}
/*----------------------------------********---------------------------------*/

View File

@@ -14,9 +14,27 @@ $filter = new InputFilter();
}
</style>
<body onresize="autoResizeScreen()" onload="autoResizeScreen()">
<?php
/*----------------------------------********---------------------------------*/
if (true) {
//In enterprise version this snippet of code should be always be executed
//In community version this snippet of code is deleted and is executed the next snippet of code
?>
<iframe name="casesFrame" id="casesFrame" src ="<?php echo $cd; ?>../cases/viena_init<?php echo $filter->xssFilterHard($_POST['qs']); ?>" width="99%" height="768" frameborder="0">
<p>Your browser does not support iframes.</p>
</iframe>
<?php
} else {
/*----------------------------------********---------------------------------*/
?>
<iframe name="casesFrame" id="casesFrame" src ="<?php echo $cd; ?>../cases/main_init<?php echo $filter->xssFilterHard($_POST['qs']); ?>" width="99%" height="768" frameborder="0">
<p>Your browser does not support iframes.</p>
</iframe>
<?php
/*----------------------------------********---------------------------------*/
}
/*----------------------------------********---------------------------------*/
?>
</body>
<script>
if ( document.getElementById('pm_submenu') )