Skip to content

Commit 1ba21b9

Browse files
committed
Fixed General settings are not saved (Close #8)
1 parent 7ab69b8 commit 1ba21b9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

browsernotification.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ This plugin allow your browser to show notifications for GLPI
9494
<compatibility>0.90</compatibility>
9595
<compatibility>9.1</compatibility>
9696
</version>
97+
<version>
98+
<num>1.1.5</num>
99+
<compatibility>0.85</compatibility>
100+
<compatibility>0.90</compatibility>
101+
<compatibility>9.1</compatibility>
102+
</version>
97103
</versions>
98104
<langs>
99105
<lang>en_US</lang>

inc/preference.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public function computePreferences() {
2121
if ($this->user_id) {
2222
$user_prefer = Config::getConfigurationValues('browsernotification (' . $this->user_id . ')');
2323
$this->preferences = array_merge($this->default, $user_prefer);
24+
} else {
25+
$this->preferences = $this->default;
2426
}
2527
}
2628

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
define('PLUGIN_BROWSERNOTIFICATION_VERSION', '1.1.4');
3+
define('PLUGIN_BROWSERNOTIFICATION_VERSION', '1.1.5');
44

55
// Init the hooks of the plugins -Needed
66
function plugin_init_browsernotification() {

0 commit comments

Comments
 (0)