Fix to avoid to die page when there is a redirect.
This commit is contained in:
parent
4d38e5cdb5
commit
18e4d1b334
@ -342,9 +342,9 @@ function redirectToContainer($containerref, $containeraliasalt = '', $containeri
|
|||||||
if (defined('USEDOLIBARREDITOR'))
|
if (defined('USEDOLIBARREDITOR'))
|
||||||
{
|
{
|
||||||
print '<div class="margintoponly marginleftonly">';
|
print '<div class="margintoponly marginleftonly">';
|
||||||
print "This page contains dynamic code that make a redirect to '".$containerref."' in your current context. There is no preview for this page.";
|
print "This page contains dynamic code that make a redirect to '".$containerref."' in your current context. Redirect has been canceled as it is not supported in edition mode.";
|
||||||
print '</div>';
|
print '</div>';
|
||||||
exit;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined('USEDOLIBARRSERVER')) // When page called from Dolibarr server
|
if (defined('USEDOLIBARRSERVER')) // When page called from Dolibarr server
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user