Skip to content

Commit b955476

Browse files
authored
GLPI 10.0 compatibility (#462)
* GLPI 10.0 compatibility - Permit installation on GLPI 10.0.x - Replace deprecated usage of Html::autocompletionTextField() - Fix DBmysqlIterator usage - Fix showForm() signature - Use same PHP minimal version as GLPI core - Upgrade to symfony/yaml 5.4 - Remove deprecated usage of integer display width - Use default GLPI charset/collation during install/update - Force database dynamic row format - Move fields display to a twig template - Display YAML export button only on existing items, and move it in item toolbar - Use default sign on primary/foreign keys - $_SERVER['REQUEST_URI'] may be missing - Try to use legit limits
1 parent b099bdd commit b955476

16 files changed

+801
-344
lines changed

ajax/reorder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
exit();
6060
}
6161

62-
$field_id = $field_iterator->next()['id'];
62+
$field_id = $field_iterator->current()['id'];
6363

6464
// Move all elements to their new ranking
6565
if ($old_order < $new_order) {

ajax/viewtranslations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
$translation = new PluginFieldsLabelTranslation();
4646
$canedit = $translation->can($translation->getID(), CREATE);
4747
if ($canedit) {
48-
$translation->showForm($_POST['itemtype'], $_POST['items_id'], $_POST['id']);
48+
$translation->showFormForItem($_POST['itemtype'], $_POST['items_id'], $_POST['id']);
4949
} else {
5050
echo __('Access denied');
5151
}

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"require": {
3-
"php": "^7.2",
4-
"symfony/yaml": "^4.4"
3+
"php": ">=7.4",
4+
"symfony/yaml": "^5.4"
55
},
66
"require-dev": {
77
"glpi-project/tools": "^0.4"
88
},
99
"config": {
1010
"optimize-autoloader": true,
1111
"platform": {
12-
"php": "7.2.0"
12+
"php": "7.4.0"
1313
},
1414
"sort-packages": true
1515
}

0 commit comments

Comments
 (0)