Skip to content

Commit 15c14b3

Browse files
committed
Merge branch 'release/2.1.2'
2 parents 22aa33e + 40d9048 commit 15c14b3

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

ajax/group_values.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
$_SESSION['glpicondition'][$rand] = getEntitiesRestrictRequest(" ", "", "entities_id",
3131
$_SESSION['glpiactive_entity'], 1). "AND glpi_groups.is_assign";
3232
}
33-
$_POST = $default_options; // fix for glpi 9.1
33+
$_POST += $default_options; // fix for glpi 9.1
3434
require ("../../../ajax/getDropdownValue.php");

itilcategorygroups.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Potom, pro každou z kategorií požadavku je možné určit která skupina bude
3737
<author>François Legastelois</author>
3838
</authors>
3939
<versions>
40+
<version>
41+
<num>2.1.2</num>
42+
<compatibility>9.3</compatibility>
43+
</version>
4044
<version>
4145
<num>2.1.1</num>
4246
<compatibility>9.3</compatibility>

scripts/filtergroups.js.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,22 @@
5858
ajax: {
5959
url: url,
6060
dataType: 'json',
61-
data: function (term, page) {
61+
type: 'POST',
62+
data: function (params, page) {
63+
query = params;
6264
return {
6365
ticket_id: tickets_id,
6466
type : type,
6567
itilcategories_id: getItilcategories_id(),
66-
searchText: term
68+
searchText: params.term
6769
};
6870
},
6971
results: function (data, page) {
7072
var more = (data.count >= 100);
7173
return { results: data.results, more: more };
7274
}
7375
},
76+
templateResult: formatResult,
7477
initSelection: function (element, callback) {
7578
var id = $(element).val();
7679
var defaultid = '0';
@@ -96,8 +99,7 @@
9699
});
97100
}
98101
}
99-
},
100-
templateResult: formatResult
102+
}
101103
});
102104
};
103105

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@since 2009
2929
---------------------------------------------------------------------- */
3030

31-
define ('PLUGIN_ITILCATEGORYGROUPS_VERSION', '2.1.1');
31+
define ('PLUGIN_ITILCATEGORYGROUPS_VERSION', '2.1.2');
3232

3333
// Minimal GLPI version, inclusive
3434
define("PLUGIN_ITILCATEGORYGROUPS_MIN_GLPI", "9.3");

0 commit comments

Comments
 (0)