Skip to content

Commit a7d2ede

Browse files
committed
Merge branch 'release/1.4.2'
2 parents 3bce464 + c834098 commit a7d2ede

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

inc/alert.class.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,9 @@ public static function findAllToNotify($params = []) {
246246
//and not the current entity
247247
if ($p['show_helpdesk_alerts']) {
248248
$show_helpdesk_sql = " AND `$table`.`is_displayed_onhelpdesk`='1'";
249-
$entity_sql = getEntitiesRestrictRequest(" AND", $table, "",
250-
$p['entities_id'], true);
251-
} else if (!$p['show_only_login_alerts']) {
252-
$entity_sql = getEntitiesRestrictRequest("AND", $table, "",
253-
$_SESSION['glpiactive_entity'],
254-
$_SESSION['glpiactive_entity_recursive'],
255-
true);
249+
}
250+
if (!$p['show_only_login_alerts']) {
251+
$entity_sql = getEntitiesRestrictRequest("AND", $table, "", $p['entities_id'], true);
256252
}
257253

258254
$query = "SELECT DISTINCT `$table`.`id`, `$table`.*

plugin.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ Fonctionnalités
5353
<author>TECLIB'</author>
5454
</authors>
5555
<versions>
56+
<version>
57+
<num>1.4.2</num>
58+
<compatibility>9.3</compatibility>
59+
</version>
5660
<version>
5761
<num>1.4.1</num>
5862
<compatibility>9.3</compatibility>

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
--------------------------------------------------------------------------
2222
*/
2323

24-
define ('PLUGIN_NEWS_VERSION', '1.4.1');
24+
define ('PLUGIN_NEWS_VERSION', '1.4.2');
2525

2626
// Minimal GLPI version, inclusive
2727
define("PLUGIN_NEWS_MIN_GLPI", "9.3");

0 commit comments

Comments
 (0)