Merged in bugfix/PMCORE-4028 (pull request #8645)
PMCORE-4028 [29796] Al utilizar la función PMFNewCaseImpersonate no se muestran errores. Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
@@ -2542,13 +2542,13 @@ class PmDynaform
|
|||||||
$message = "";
|
$message = "";
|
||||||
if (isset($_SESSION['G_MESSAGE_TYPE']) && isset($_SESSION['G_MESSAGE'])) {
|
if (isset($_SESSION['G_MESSAGE_TYPE']) && isset($_SESSION['G_MESSAGE'])) {
|
||||||
$color = "green";
|
$color = "green";
|
||||||
if ($_SESSION['G_MESSAGE_TYPE'] === "ERROR") {
|
if (strtoupper($_SESSION['G_MESSAGE_TYPE']) === "ERROR") {
|
||||||
$color = "red";
|
$color = "red";
|
||||||
}
|
}
|
||||||
if ($_SESSION['G_MESSAGE_TYPE'] === "WARNING") {
|
if (strtoupper($_SESSION['G_MESSAGE_TYPE']) === "WARNING") {
|
||||||
$color = "#C3C380";
|
$color = "#C3C380";
|
||||||
}
|
}
|
||||||
if ($_SESSION['G_MESSAGE_TYPE'] === "INFO") {
|
if (strtoupper($_SESSION['G_MESSAGE_TYPE']) === "INFO") {
|
||||||
$color = "green";
|
$color = "green";
|
||||||
}
|
}
|
||||||
$message = "<div style='background-color:" . $color . ";color: white;padding: 1px 2px 1px 5px;' class='userGroupTitle'>" . $_SESSION['G_MESSAGE_TYPE'] . ": " . $_SESSION['G_MESSAGE'] . "</div>";
|
$message = "<div style='background-color:" . $color . ";color: white;padding: 1px 2px 1px 5px;' class='userGroupTitle'>" . $_SESSION['G_MESSAGE_TYPE'] . ": " . $_SESSION['G_MESSAGE'] . "</div>";
|
||||||
|
|||||||
Reference in New Issue
Block a user