diff --git a/ajax/reorder.php b/ajax/reorder.php index fd09ce21..e09ddb67 100644 --- a/ajax/reorder.php +++ b/ajax/reorder.php @@ -1,31 +1,71 @@ request( + [ + 'SELECT' => 'id', + 'FROM' => $table, + 'WHERE' => [ + 'plugin_fields_containers_id' => $container_id, + 'ranking' => $old_order, + ], + ] +); + +if (0 === $field_iterator->count()) { + // Unknown field + exit(); +} -// Récupération de l'ID du champ à modifier -$query = "SELECT id FROM $table - WHERE plugin_fields_containers_id = {$_POST['container_id']} - AND `ranking` = {$_POST['old_order']}"; -$result = $DB->queryOrDie($query, 'Erreur'); -$first = $result->fetch_assoc(); -$id_item = $first['id']; +$field_id = $field_iterator->next()['id']; -// Réorganisation de tout les champs -if ($_POST['old_order'] < $_POST['new_order']) { - $DB->query("UPDATE $table SET - `ranking` = `ranking`-1 - WHERE plugin_fields_containers_id = {$_POST['container_id']} - AND `ranking` > {$_POST['old_order']} - AND `ranking` <= {$_POST['new_order']}"); +// Move all elements to their new ranking +if ($old_order < $new_order) { + $DB->update( + $table, + [ + 'ranking' => new \QueryExpression($DB->quoteName('ranking') . ' - 1'), + ], + [ + 'plugin_fields_containers_id' => $container_id, + ['ranking' => ['>', $old_order]], + ['ranking' => ['<=', $new_order]], + ] + ); } else { - $DB->query("UPDATE $table SET - `ranking` = `ranking`+1 - WHERE plugin_fields_containers_id = {$_POST['container_id']} - AND `ranking` < {$_POST['old_order']} - AND `ranking` >= {$_POST['new_order']}"); + $DB->update( + $table, + [ + 'ranking' => new \QueryExpression($DB->quoteName('ranking') . ' + 1'), + ], + [ + 'plugin_fields_containers_id' => $container_id, + ['ranking' => ['<', $old_order]], + ['ranking' => ['>=', $new_order]], + ] + ); } -$DB->query("UPDATE $table SET - `ranking` = {$_POST['new_order']} - WHERE id = $id_item"); +// Update current element +$DB->update( + $table, + [ + 'ranking' => $new_order, + ], + [ + 'id' => $field_id, + ] +); diff --git a/composer.lock b/composer.lock index 031ae78b..4954fb0f 100644 --- a/composer.lock +++ b/composer.lock @@ -359,16 +359,16 @@ }, { "name": "consolidation/output-formatters", - "version": "3.4.1", + "version": "3.5.0", "source": { "type": "git", "url": "https://github.com/consolidation/output-formatters.git", - "reference": "0881112642ad9059071f13f397f571035b527cb9" + "reference": "99ec998ffb697e0eada5aacf81feebfb13023605" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/0881112642ad9059071f13f397f571035b527cb9", - "reference": "0881112642ad9059071f13f397f571035b527cb9", + "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/99ec998ffb697e0eada5aacf81feebfb13023605", + "reference": "99ec998ffb697e0eada5aacf81feebfb13023605", "shasum": "" }, "require": { @@ -456,7 +456,7 @@ } ], "description": "Format text by applying transformations provided by plug-in formatters.", - "time": "2019-03-14T03:45:44+00:00" + "time": "2019-05-30T23:16:01+00:00" }, { "name": "consolidation/robo", @@ -745,16 +745,16 @@ }, { "name": "glpi-project/tools", - "version": "0.1.5", + "version": "0.1.7", "source": { "type": "git", "url": "https://github.com/glpi-project/tools.git", - "reference": "5ff99fa5967b468af3d3ba2d7a69ede1214273ea" + "reference": "e60f28d7dcffdb491858c3473d102cb15937651c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/glpi-project/tools/zipball/5ff99fa5967b468af3d3ba2d7a69ede1214273ea", - "reference": "5ff99fa5967b468af3d3ba2d7a69ede1214273ea", + "url": "https://api.github.com/repos/glpi-project/tools/zipball/e60f28d7dcffdb491858c3473d102cb15937651c", + "reference": "e60f28d7dcffdb491858c3473d102cb15937651c", "shasum": "" }, "require": { @@ -791,7 +791,7 @@ "plugins", "tools" ], - "time": "2018-06-21T11:59:33+00:00" + "time": "2019-05-02T12:53:51+00:00" }, { "name": "grasmash/expander", @@ -1191,16 +1191,16 @@ }, { "name": "symfony/console", - "version": "v3.4.27", + "version": "v3.4.28", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "15a9104356436cb26e08adab97706654799d31d8" + "reference": "8e1d1e406dd31727fa70cd5a99cda202e9d6a5c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/15a9104356436cb26e08adab97706654799d31d8", - "reference": "15a9104356436cb26e08adab97706654799d31d8", + "url": "https://api.github.com/repos/symfony/console/zipball/8e1d1e406dd31727fa70cd5a99cda202e9d6a5c6", + "reference": "8e1d1e406dd31727fa70cd5a99cda202e9d6a5c6", "shasum": "" }, "require": { @@ -1259,20 +1259,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2019-04-08T09:29:13+00:00" + "time": "2019-05-09T08:42:51+00:00" }, { "name": "symfony/debug", - "version": "v3.4.27", + "version": "v3.4.28", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "681afbb26488903c5ac15e63734f1d8ac430c9b9" + "reference": "671fc55bd14800668b1d0a3708c3714940e30a8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/681afbb26488903c5ac15e63734f1d8ac430c9b9", - "reference": "681afbb26488903c5ac15e63734f1d8ac430c9b9", + "url": "https://api.github.com/repos/symfony/debug/zipball/671fc55bd14800668b1d0a3708c3714940e30a8c", + "reference": "671fc55bd14800668b1d0a3708c3714940e30a8c", "shasum": "" }, "require": { @@ -1315,11 +1315,11 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2019-04-11T09:48:14+00:00" + "time": "2019-05-18T13:32:47+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v3.4.27", + "version": "v3.4.28", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", @@ -1382,7 +1382,7 @@ }, { "name": "symfony/filesystem", - "version": "v3.4.27", + "version": "v3.4.28", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -1432,16 +1432,16 @@ }, { "name": "symfony/finder", - "version": "v3.4.27", + "version": "v3.4.28", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "61af5ce0b34b942d414fe8f1b11950d0e9a90e98" + "reference": "fa5d962a71f2169dfe1cbae217fa5a2799859f6c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/61af5ce0b34b942d414fe8f1b11950d0e9a90e98", - "reference": "61af5ce0b34b942d414fe8f1b11950d0e9a90e98", + "url": "https://api.github.com/repos/symfony/finder/zipball/fa5d962a71f2169dfe1cbae217fa5a2799859f6c", + "reference": "fa5d962a71f2169dfe1cbae217fa5a2799859f6c", "shasum": "" }, "require": { @@ -1477,7 +1477,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-04-02T19:54:57+00:00" + "time": "2019-05-24T12:25:55+00:00" }, { "name": "symfony/polyfill-ctype", @@ -1598,16 +1598,16 @@ }, { "name": "symfony/process", - "version": "v3.4.27", + "version": "v3.4.28", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "a9c4dfbf653023b668c282e4e02609d131f4057a" + "reference": "afe411c2a6084f25cff55a01d0d4e1474c97ff13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/a9c4dfbf653023b668c282e4e02609d131f4057a", - "reference": "a9c4dfbf653023b668c282e4e02609d131f4057a", + "url": "https://api.github.com/repos/symfony/process/zipball/afe411c2a6084f25cff55a01d0d4e1474c97ff13", + "reference": "afe411c2a6084f25cff55a01d0d4e1474c97ff13", "shasum": "" }, "require": { @@ -1643,11 +1643,11 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2019-04-08T16:15:54+00:00" + "time": "2019-05-22T12:54:11+00:00" }, { "name": "symfony/yaml", - "version": "v3.4.27", + "version": "v3.4.28", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", diff --git a/inc/container.class.php b/inc/container.class.php index 0db30066..6ee0043e 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -755,7 +755,8 @@ static function getItemtypes($is_domtab) { 'Supplier' => Supplier::getTypeName(2), 'Contact' => Contact::getTypeName(2), 'Contract' => Contract::getTypeName(2), - 'Document' => Document::getTypeName(2) + 'Document' => Document::getTypeName(2), + 'Line' => Line::getTypeName(2), ]; $tabs[__('Tools')] = [ diff --git a/inc/field.class.php b/inc/field.class.php index 8b5da257..a0386037 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -795,7 +795,7 @@ static function prepareHtmlFields($fields, $items_id, $itemtype, $canedit = true break; case 'dropdownuser': if ($massiveaction) { - continue; + break; } if ($canedit && !$readonly) { $html.= User::dropdown(['name' => $field['name'], diff --git a/locales/cs_CZ.mo b/locales/cs_CZ.mo index 016083bb..c830dec6 100644 Binary files a/locales/cs_CZ.mo and b/locales/cs_CZ.mo differ diff --git a/locales/cs_CZ.po b/locales/cs_CZ.po index b67e255b..97c7b006 100644 --- a/locales/cs_CZ.po +++ b/locales/cs_CZ.po @@ -5,14 +5,14 @@ # Translators: # David Stepan , 2016 # Merlin Merlin , 2017 -# Pavel Borecki , 2018 +# Pavel Borecki , 2018-2019 msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" -"PO-Revision-Date: 2019-05-02 10:39+0000\n" -"Last-Translator: Cédric Anne\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" +"PO-Revision-Date: 2019-05-03 11:12+0000\n" +"Last-Translator: Pavel Borecki \n" "Language-Team: Czech (Czech Republic) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/cs_CZ/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -111,7 +111,7 @@ msgstr "Znovu vytvořit kontejnerové soubory" #: inc/container.class.php:87 msgid "Fix container names" -msgstr "" +msgstr "Opravit názvy kontejnerů" #: inc/container.class.php:168 msgid "Updating generated containers files" @@ -145,27 +145,27 @@ msgstr "Blok" msgid "Tab" msgstr "Tabulka" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Přidat tabulku" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Vložení do formuláře (před tlačítkem uložit)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Vložení do formuláře konkrétního panelu (před tlačítkem uložit)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Některá povinná pole nejsou vyplněná" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Některé číselné kolonky obsahují nečíselné hodnoty" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Některé URL kolonky obsahují neplatné odkazy" @@ -183,4 +183,4 @@ msgstr "Aktualizují se vytvořené soubory rozbalovací nabídky" #: inc/toolbox.class.php:90 msgid "Fix fields names" -msgstr "" +msgstr "Opravit názvy kolonek" diff --git a/locales/en_GB.mo b/locales/en_GB.mo index 5f52cf7d..3f446992 100644 Binary files a/locales/en_GB.mo and b/locales/en_GB.mo differ diff --git a/locales/en_GB.po b/locales/en_GB.po index ed8fe85c..1c0351da 100644 --- a/locales/en_GB.po +++ b/locales/en_GB.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" -"PO-Revision-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" +"PO-Revision-Date: 2019-06-04 12:47+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en_GB\n" @@ -146,27 +146,27 @@ msgstr "Block" msgid "Tab" msgstr "Tab" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Add tab" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Insertion in the form (before save button)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Insertion in the form of a specific tab (before save button)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Some mandatory fields are empty" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Some numeric fields contains non numeric values" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Some URL fields contains invalid links" diff --git a/locales/en_US.mo b/locales/en_US.mo index 6714d58a..60b9133b 100644 Binary files a/locales/en_US.mo and b/locales/en_US.mo differ diff --git a/locales/en_US.po b/locales/en_US.po index 01738cb1..dacb6266 100644 --- a/locales/en_US.po +++ b/locales/en_US.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: English (United States) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/en_US/)\n" @@ -144,27 +144,27 @@ msgstr "Block" msgid "Tab" msgstr "Tab" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Add Tab" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Insert in the Form (before save button)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Insert in the Form of a Specific Tab (before save button)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Some required fields are empty" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Some numeric fields contains non-numeric values" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Some URL fields contains invalid links" diff --git a/locales/es_ES.mo b/locales/es_ES.mo index 65c71292..cde2a4b1 100644 Binary files a/locales/es_ES.mo and b/locales/es_ES.mo differ diff --git a/locales/es_ES.po b/locales/es_ES.po index b0717971..d30c5822 100644 --- a/locales/es_ES.po +++ b/locales/es_ES.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: Spanish (Spain) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/es_ES/)\n" @@ -145,27 +145,27 @@ msgstr "Bloque" msgid "Tab" msgstr "Pestaña" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Agregar pestaña" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Insertando en el formulario (antes del botón guardar)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Inserción en el formulario de una pestaña específica (antes del botón guardar)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Algunos campos obligatorios están vacíos" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Algunos campos numéricos contienen valores no numéricos" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Algunos campos de URL contienen vínculos no válidos" diff --git a/locales/fi_FI.mo b/locales/fi_FI.mo index 2dcb8a27..f2dcd15c 100644 Binary files a/locales/fi_FI.mo and b/locales/fi_FI.mo differ diff --git a/locales/fi_FI.po b/locales/fi_FI.po index f67015d0..45597c23 100644 --- a/locales/fi_FI.po +++ b/locales/fi_FI.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: Finnish (Finland) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/fi_FI/)\n" @@ -143,27 +143,27 @@ msgstr "Osio" msgid "Tab" msgstr "Välilehti" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Lisää välilehti" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Lisää lomakkeeseen (ennen tallennuspainiketta)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Lisää lomakkeeseen tietyssä välilehdessä (ennen tallennuspainiketta)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Jotkut pakolliset kentät ovat tyhjiä" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Jotkin numeeriset kentät sisältävät ei-numeerisia arvoja" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Joissakin URL-kentissä on virheellisiä linkkejä" diff --git a/locales/fields.pot b/locales/fields.pot index 7233ae3a..b044b68d 100644 --- a/locales/fields.pot +++ b/locales/fields.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -142,27 +142,27 @@ msgstr "" msgid "Tab" msgstr "" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "" diff --git a/locales/fr_FR.mo b/locales/fr_FR.mo index f1ede4ec..e2246dba 100644 Binary files a/locales/fr_FR.mo and b/locales/fr_FR.mo differ diff --git a/locales/fr_FR.po b/locales/fr_FR.po index 5247f232..4eb1bcfc 100644 --- a/locales/fr_FR.po +++ b/locales/fr_FR.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: French (France) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/fr_FR/)\n" @@ -146,27 +146,27 @@ msgstr "Bloc" msgid "Tab" msgstr "Onglet" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Ajout d'un onglet" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Insertion dans le formulaire (avant le bouton sauvegarder)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Insertion dans le formulaire d'un onglet spécifique (avant le bouton sauvegarder)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Des champs obligatoires sont vides" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Des champs numériques contiennent des données non numériques" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Des champs URL contiennent des liens invalides" diff --git a/locales/pl_PL.mo b/locales/pl_PL.mo index 52d80f93..0dc1e401 100644 Binary files a/locales/pl_PL.mo and b/locales/pl_PL.mo differ diff --git a/locales/pl_PL.po b/locales/pl_PL.po index 57abb676..9ddc892f 100644 --- a/locales/pl_PL.po +++ b/locales/pl_PL.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: Polish (Poland) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/pl_PL/)\n" @@ -144,27 +144,27 @@ msgstr "Blok" msgid "Tab" msgstr "Zakładka" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Dodaj zakładkę" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Dodawanie danych w formularzu (przed przyciskiem zapisz)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Dodawanie danych w formularzu w konkretnej karcie (przed przyciskiem zapisz)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Niektóre wymagane pola są puste" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Niektóre pola numeryczne zawierają wartości inne niż liczby" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Niektóre pola zawierają nieprawidłowe linki URL" diff --git a/locales/pt_BR.mo b/locales/pt_BR.mo index fd6ea436..a084699c 100644 Binary files a/locales/pt_BR.mo and b/locales/pt_BR.mo differ diff --git a/locales/pt_BR.po b/locales/pt_BR.po index 3773ef99..f28e3db8 100644 --- a/locales/pt_BR.po +++ b/locales/pt_BR.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/pt_BR/)\n" @@ -145,27 +145,27 @@ msgstr "Bloco" msgid "Tab" msgstr "Aba" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Adicionar aba" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Inserção no formulário (antes do botão de salvar)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Inserção no formulário de uma guia específica (antes do botão de salvar)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Alguns campos obrigatórios estão vazios" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Alguns campos numéricos contém valores não numéricos" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Alguns campos de URL contém links inválidos" diff --git a/locales/pt_PT.mo b/locales/pt_PT.mo index cfc71ad2..02d940fe 100644 Binary files a/locales/pt_PT.mo and b/locales/pt_PT.mo differ diff --git a/locales/pt_PT.po b/locales/pt_PT.po index 9b8d2825..4d075a2d 100644 --- a/locales/pt_PT.po +++ b/locales/pt_PT.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: Portuguese (Portugal) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/pt_PT/)\n" @@ -142,27 +142,27 @@ msgstr "Bloco" msgid "Tab" msgstr "Aba" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Adicionar aba" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Inserir no formulário (antes de gravar)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Inserir o formulário num aba especifica" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Os campos obrigatórios não foram preenchidos" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Alguns campos numéricos não contem números" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Alguns campos de URL tem links invalidos" diff --git a/locales/ro_RO.mo b/locales/ro_RO.mo index fbfc18cb..e77f26ea 100644 Binary files a/locales/ro_RO.mo and b/locales/ro_RO.mo differ diff --git a/locales/ro_RO.po b/locales/ro_RO.po index 6dd4c937..3cf2c5b4 100644 --- a/locales/ro_RO.po +++ b/locales/ro_RO.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: Romanian (Romania) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/ro_RO/)\n" @@ -144,27 +144,27 @@ msgstr "" msgid "Tab" msgstr "Tab" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Add tab" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Unele campuri obligatorii sunt goale" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "" diff --git a/locales/ru_RU.mo b/locales/ru_RU.mo index 67251aab..bccb22ed 100644 Binary files a/locales/ru_RU.mo and b/locales/ru_RU.mo differ diff --git a/locales/ru_RU.po b/locales/ru_RU.po index 5750c52b..5a426209 100644 --- a/locales/ru_RU.po +++ b/locales/ru_RU.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: Russian (Russia) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/ru_RU/)\n" @@ -145,27 +145,27 @@ msgstr "Блок" msgid "Tab" msgstr "Вкладка" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Добавить вкладку" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Добавить в виде (до кнопки сохранения)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Добавить в виде конкретной вкладки (до кнопки сохранения)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Некоторые обязательные поля пусты" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Некоторые числовые поля содержат не только цифры" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Некоторый URL полей содержат недействительные ссылки" diff --git a/locales/tr_TR.mo b/locales/tr_TR.mo index f1d24c36..42be7760 100644 Binary files a/locales/tr_TR.mo and b/locales/tr_TR.mo differ diff --git a/locales/tr_TR.po b/locales/tr_TR.po index 89f155b1..0990da66 100644 --- a/locales/tr_TR.po +++ b/locales/tr_TR.po @@ -3,14 +3,14 @@ # This file is distributed under the same license as the PACKAGE package. # # Translators: -# Kaya Zeren , 2015-2018 +# Kaya Zeren , 2015-2019 msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" -"PO-Revision-Date: 2019-05-02 10:39+0000\n" -"Last-Translator: Cédric Anne\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" +"PO-Revision-Date: 2019-05-03 04:27+0000\n" +"Last-Translator: Kaya Zeren \n" "Language-Team: Turkish (Turkey) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/tr_TR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -109,7 +109,7 @@ msgstr "Kapsayıcı dosyalar yeniden oluşturulsun" #: inc/container.class.php:87 msgid "Fix container names" -msgstr "" +msgstr "Kapsayıcı adlarını düzelt" #: inc/container.class.php:168 msgid "Updating generated containers files" @@ -143,27 +143,27 @@ msgstr "Blok" msgid "Tab" msgstr "Sekme" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "Sekme ekle" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "Forma eklensin (kaydet düğmesinden önce)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "Forma sekme olarak eklensin (kaydet düğmesinden önce)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "Bazı zorunlu alanlar boş" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "Bazı sayısal alanlarda sayısal olmayan değerler var" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "Bazı İnternet adresi alanlarında geçersiz bağlantılar var" @@ -181,4 +181,4 @@ msgstr "Oluşturulmuş açılan kutu dosyaları güncelleniyor" #: inc/toolbox.class.php:90 msgid "Fix fields names" -msgstr "" +msgstr "Alan adlarını düzelt" diff --git a/locales/zh_CN.mo b/locales/zh_CN.mo index 2959ac80..c95ac2b6 100644 Binary files a/locales/zh_CN.mo and b/locales/zh_CN.mo differ diff --git a/locales/zh_CN.po b/locales/zh_CN.po index 47b21d02..c6faade4 100644 --- a/locales/zh_CN.po +++ b/locales/zh_CN.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: GLPI Plugin - Fields\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-02 10:39+0000\n" +"POT-Creation-Date: 2019-06-04 12:47+0000\n" "PO-Revision-Date: 2019-05-02 10:39+0000\n" "Last-Translator: Cédric Anne\n" "Language-Team: Chinese (China) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/zh_CN/)\n" @@ -143,27 +143,27 @@ msgstr "区域" msgid "Tab" msgstr "标签" -#: inc/container.class.php:824 +#: inc/container.class.php:825 msgid "Add tab" msgstr "添加标签" -#: inc/container.class.php:825 +#: inc/container.class.php:826 msgid "Insertion in the form (before save button)" msgstr "在窗体中插入(保存按钮前)" -#: inc/container.class.php:826 +#: inc/container.class.php:827 msgid "Insertion in the form of a specific tab (before save button)" msgstr "以特定选项卡的形式插入(保存按钮之前)" -#: inc/container.class.php:1188 +#: inc/container.class.php:1189 msgid "Some mandatory fields are empty" msgstr "一些强制字段是空的。" -#: inc/container.class.php:1193 +#: inc/container.class.php:1194 msgid "Some numeric fields contains non numeric values" msgstr "一些数值字段包含非数值" -#: inc/container.class.php:1198 +#: inc/container.class.php:1199 msgid "Some URL fields contains invalid links" msgstr "有些URL字段包含无效链接" diff --git a/plugin.xml b/plugin.xml index 34f79f83..63d7465b 100644 --- a/plugin.xml +++ b/plugin.xml @@ -97,6 +97,10 @@ Il existe un [script de migration](https://github.com/pluginsGLPI/customfields/b Johan Cwiklinski + + 1.10.0 + 9.4 + 1.9.2 9.4 diff --git a/setup.php b/setup.php index a9be1da3..22ba1261 100644 --- a/setup.php +++ b/setup.php @@ -26,7 +26,7 @@ -------------------------------------------------------------------------- */ -define ('PLUGIN_FIELDS_VERSION', '1.9.2'); +define ('PLUGIN_FIELDS_VERSION', '1.10.0'); // Minimal GLPI version, inclusive define("PLUGIN_FIELDS_MIN_GLPI", "9.4");