mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-11103-15535-agente-debe-de-ser-aplicado-cuando-ya-esta-aplicado' into 'develop'
fixed modules adopted pandora_enterprise#11103 See merge request artica/pandorafms!5836
This commit is contained in:
commit
4a8e8f4ae1
@ -840,8 +840,8 @@ if ($modules !== false) {
|
|||||||
$linked = policies_is_module_linked($module['id_agente_modulo']);
|
$linked = policies_is_module_linked($module['id_agente_modulo']);
|
||||||
$adopt = policies_is_module_adopt($module['id_agente_modulo']);
|
$adopt = policies_is_module_adopt($module['id_agente_modulo']);
|
||||||
|
|
||||||
if ($linked !== false) {
|
if ((bool) $linked !== false) {
|
||||||
if ($adopt === true) {
|
if ((bool) $adopt === true) {
|
||||||
$img = 'images/policies_brick.png';
|
$img = 'images/policies_brick.png';
|
||||||
$title = '('.__('Adopted').') '.$policyInfo['name_policy'];
|
$title = '('.__('Adopted').') '.$policyInfo['name_policy'];
|
||||||
} else {
|
} else {
|
||||||
@ -849,7 +849,7 @@ if ($modules !== false) {
|
|||||||
$title = $policyInfo['name_policy'];
|
$title = $policyInfo['name_policy'];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($adopt === true) {
|
if ((bool) $adopt === true) {
|
||||||
$img = 'images/policies_not_brick.png';
|
$img = 'images/policies_not_brick.png';
|
||||||
$title = '('.__('Unlinked').') ('.__('Adopted').') '.$policyInfo['name_policy'];
|
$title = '('.__('Unlinked').') ('.__('Adopted').') '.$policyInfo['name_policy'];
|
||||||
} else {
|
} else {
|
||||||
|
@ -1081,8 +1081,8 @@ if (check_login()) {
|
|||||||
$policyInfo = policies_info_module_policy($module['id_policy_module']);
|
$policyInfo = policies_info_module_policy($module['id_policy_module']);
|
||||||
$adopt = policies_is_module_adopt($module['id_agente_modulo']);
|
$adopt = policies_is_module_adopt($module['id_agente_modulo']);
|
||||||
|
|
||||||
if ($linked === true) {
|
if ((bool) $linked === true) {
|
||||||
if ($adopt === true) {
|
if ((bool) $adopt === true) {
|
||||||
$img = 'images/policies_brick.png';
|
$img = 'images/policies_brick.png';
|
||||||
$title = '('.__('Adopted').') '.$name_policy;
|
$title = '('.__('Adopted').') '.$name_policy;
|
||||||
} else {
|
} else {
|
||||||
@ -1090,7 +1090,7 @@ if (check_login()) {
|
|||||||
$title = $name_policy;
|
$title = $name_policy;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($adopt === true) {
|
if ((bool) $adopt === true) {
|
||||||
$img = 'images/policies_not_brick.png';
|
$img = 'images/policies_not_brick.png';
|
||||||
$title = '('.__('Unlinked').') ('.__('Adopted').') '.$name_policy;
|
$title = '('.__('Unlinked').') ('.__('Adopted').') '.$name_policy;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user