Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 253e126

Browse files
committed
Merge branch 'release/4.2.1'
2 parents b0d2153 + af1ade1 commit 253e126

File tree

16 files changed

+312
-283
lines changed

16 files changed

+312
-283
lines changed

inc/config.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static function install(Migration $migration) {
259259
`check_ssl` int(1) NOT NULL DEFAULT 0,
260260
`use_proxy` int(1) NOT NULL DEFAULT 0,
261261
PRIMARY KEY (`id`)
262-
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
262+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
263263
$DB->query($query) or die($DB->error());
264264

265265
$query = "INSERT INTO `$table` (id) VALUES (1)";

inc/mantis.class.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,13 @@ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtem
8282
* @param $item CommonDBTM object
8383
**/
8484
public static function countForItem(CommonDBTM $item) {
85-
return countElementsInTable(self::getTable(), "`items_id` = '".$item->getID()."'
86-
AND `itemtype` = '".$item->getType()."'");
85+
return countElementsInTable(
86+
self::getTable(),
87+
[
88+
'items_id' => $item->getID(),
89+
'itemtype' => $item->getType(),
90+
]
91+
);
8792
}
8893

8994
/**
@@ -106,7 +111,7 @@ static function install(Migration $migration) {
106111
`itemtype` varchar(255) NOT NULL,
107112
`user` int(11) NOT NULL,
108113
PRIMARY KEY (`id`)
109-
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
114+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
110115
$DB->query($query) or die($DB->error());
111116

112117
} else {

inc/profile.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static function addDefaultProfileInfos($profiles_id, $rights) {
7171
$profileRight = new ProfileRight();
7272
foreach ($rights as $right => $value) {
7373
if (!countElementsInTable('glpi_profilerights',
74-
"`profiles_id`='$profiles_id' AND `name`='$right'")) {
74+
['profiles_id' => $profiles_id, 'name' => $right])) {
7575
$myright['profiles_id'] = $profiles_id;
7676
$myright['name'] = $right;
7777
$myright['rights'] = $value;
@@ -212,7 +212,7 @@ static function changeProfile() {
212212
* @return bool
213213
*/
214214
static function oldRightNameExists() {
215-
if (countElementsInTable(ProfileRight::getTable(), "name = 'mantis:mantis'") > 0) {
215+
if (countElementsInTable(ProfileRight::getTable(), ['name' => 'mantis:mantis']) > 0) {
216216
return true;
217217
}
218218
return false;

locales/cs_CZ.mo

0 Bytes
Binary file not shown.

locales/cs_CZ.po

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-07-06 09:37+0000\n"
11+
"POT-Creation-Date: 2018-08-21 14:59+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: Pavel Borecki <[email protected]>, 2018\n"
1414
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/teclib/teams/28042/cs_CZ/)\n"
@@ -66,31 +66,31 @@ msgstr "Výchozí stav zaškrtávací kolonky"
6666
msgid "Forward document(s)"
6767
msgstr "Přeposlat dokumenty"
6868

69-
#: inc/userpref.class.php:130 inc/mantis.class.php:688
69+
#: inc/userpref.class.php:130 inc/mantis.class.php:693
7070
msgid "Forward ticket followup"
7171
msgstr "Přeposlat komunikaci navazující na požadavek"
7272

73-
#: inc/userpref.class.php:136 inc/mantis.class.php:696
73+
#: inc/userpref.class.php:136 inc/mantis.class.php:701
7474
msgid "Forward ticket tasks"
7575
msgstr "Přeposlat úkoly plynoucí z požadavku"
7676

77-
#: inc/userpref.class.php:142 inc/mantis.class.php:703
78-
#: inc/mantis.class.php:849
77+
#: inc/userpref.class.php:142 inc/mantis.class.php:708
78+
#: inc/mantis.class.php:854
7979
msgid "Forward title"
8080
msgstr "Přeposlat nadpis"
8181

82-
#: inc/userpref.class.php:148 inc/mantis.class.php:709
83-
#: inc/mantis.class.php:855
82+
#: inc/userpref.class.php:148 inc/mantis.class.php:714
83+
#: inc/mantis.class.php:860
8484
msgid "Forward description"
8585
msgstr "Přeposlat popis"
8686

87-
#: inc/userpref.class.php:154 inc/mantis.class.php:715
88-
#: inc/mantis.class.php:861
87+
#: inc/userpref.class.php:154 inc/mantis.class.php:720
88+
#: inc/mantis.class.php:866
8989
msgid "Forward category"
9090
msgstr "Přeposlat kategorii"
9191

92-
#: inc/userpref.class.php:160 inc/mantis.class.php:722
93-
#: inc/mantis.class.php:868
92+
#: inc/userpref.class.php:160 inc/mantis.class.php:727
93+
#: inc/mantis.class.php:873
9494
msgid "Forward linked tickets"
9595
msgstr "Přeposlat propojené požadavky"
9696

@@ -147,7 +147,7 @@ msgstr "Typ přílohy přenášené do MantisBT"
147147
msgid "MantisBT field for GLPI fields"
148148
msgstr "Kolonky v MantisBT pro kolonky z GLPi"
149149

150-
#: inc/config.class.php:184 inc/mantis.class.php:669 inc/mantis.class.php:794
150+
#: inc/config.class.php:184 inc/mantis.class.php:674 inc/mantis.class.php:799
151151
msgid "MantisBT field for the link URL to the GLPi object"
152152
msgstr "Kolonka v MantisBT pro URL odkazu na GLPi objekt"
153153

@@ -167,137 +167,137 @@ msgstr "GLPi uživatel který řeší požadavek?"
167167
msgid "Test the connection"
168168
msgstr "Vyzkoušet spojení"
169169

170-
#: inc/mantis.class.php:178 setup.php:88
170+
#: inc/mantis.class.php:183 setup.php:88
171171
msgid "MantisBT synchronization"
172172
msgstr "Synchronizace s MantisBT"
173173

174-
#: inc/mantis.class.php:190
174+
#: inc/mantis.class.php:195
175175
msgid "Starting update attachments."
176176
msgstr "Zahajuje se aktualizace příloh."
177177

178-
#: inc/mantis.class.php:209
178+
#: inc/mantis.class.php:214
179179
#, php-format
180180
msgid "GLPi object [%1$s:%2$s] is solved or closed."
181181
msgstr "GLPi objekt [%1$s:%2$s] je vyřešen nebo uzavřen."
182182

183-
#: inc/mantis.class.php:236
183+
#: inc/mantis.class.php:241
184184
#, php-format
185185
msgid "Can't load GLPi file [%1$s]."
186186
msgstr "Nedaří se načíst GLPi soubor [%1$s]."
187187

188-
#: inc/mantis.class.php:249
188+
#: inc/mantis.class.php:254
189189
#, php-format
190190
msgid "Can't send GLPi file [%1$s] to MantisBD."
191191
msgstr "Nedaří se poslat GLPi soubor [%1$s] do MantisBT."
192192

193-
#: inc/mantis.class.php:257
193+
#: inc/mantis.class.php:262
194194
#, php-format
195195
msgid "GLPi file [%1$s] doesn't exists."
196196
msgstr "GLPi soubor [%1$s] neexistuje."
197197

198-
#: inc/mantis.class.php:264
198+
#: inc/mantis.class.php:269
199199
#, php-format
200200
msgid "GLPi file [%1$s] already exists in MantisBT issue."
201201
msgstr "GLPi soubor [%1$s] už v MantisBT hlášení existuje."
202202

203-
#: inc/mantis.class.php:304
203+
#: inc/mantis.class.php:309
204204
#, php-format
205205
msgid "GLPi object [%1$s:%2$s] is already solved or closed."
206206
msgstr "GLPi objekt [%1$s:%2$s] už je vyřešený nebo uzavřený."
207207

208-
#: inc/mantis.class.php:336
208+
#: inc/mantis.class.php:341
209209
msgid "Plugin configuration is not correct (MantisBT status is missing)"
210210
msgstr "Nastavení zásuvného modulu není správné (chybí stav v MantisBT)"
211211

212-
#: inc/mantis.class.php:511
212+
#: inc/mantis.class.php:516
213213
msgid "Plugin configuration is not correct (connection error)."
214214
msgstr "Nastavení zásuvného modulu není správné (chyba spojení)."
215215

216-
#: inc/mantis.class.php:545 inc/mantis.class.php:565
216+
#: inc/mantis.class.php:550 inc/mantis.class.php:570
217217
msgid "Link to an existing MantisBT issue"
218218
msgstr "Propojit s existujícím hlášením v MantisBT"
219219

220-
#: inc/mantis.class.php:554 inc/mantis.class.php:570 inc/mantis.class.php:767
220+
#: inc/mantis.class.php:559 inc/mantis.class.php:575 inc/mantis.class.php:772
221221
msgid "Create a new MantisBT issue"
222222
msgstr "Vytvořit nové hlášení v MantisBT"
223223

224-
#: inc/mantis.class.php:560
224+
#: inc/mantis.class.php:565
225225
msgid "MantisBT actions"
226226
msgstr "Akce s MantisBT"
227227

228-
#: inc/mantis.class.php:598
228+
#: inc/mantis.class.php:603
229229
msgid "What do you want to do ?"
230230
msgstr "Co chcete udělat?"
231231

232-
#: inc/mantis.class.php:602
232+
#: inc/mantis.class.php:607
233233
msgid "Only delete link between GLPi object AND MantisBT issue."
234234
msgstr "Pouze smazat propojení mezi GLPi objektem a hlášením v MantisBT."
235235

236-
#: inc/mantis.class.php:608
236+
#: inc/mantis.class.php:613
237237
msgid "Force delete MantisBT issue (and GLPi object link)."
238238
msgstr "Vynutit smazání hlášení v MantisBT (a propojení na GLPi objekt)."
239239

240-
#: inc/mantis.class.php:651
240+
#: inc/mantis.class.php:656
241241
msgid "Link to an existing MantisBT issue."
242242
msgstr "Propojit s existujícím hlášením v MantisBT."
243243

244-
#: inc/mantis.class.php:654
244+
#: inc/mantis.class.php:659
245245
msgid "Id of MantisBT issue"
246246
msgstr "Identifikátor hlášení v MantisBT"
247247

248-
#: inc/mantis.class.php:657
248+
#: inc/mantis.class.php:662
249249
msgid "Click to load issue from MantisBT"
250250
msgstr "Kliknutím načtěte hlášení z MantisBT"
251251

252-
#: inc/mantis.class.php:662 inc/mantis.class.php:787
252+
#: inc/mantis.class.php:667 inc/mantis.class.php:792
253253
msgid "MantisBT field for GLPi fields"
254254
msgstr "Kolonky v MantisBT pro ty z GLPi"
255255

256-
#: inc/mantis.class.php:677 inc/mantis.class.php:823
256+
#: inc/mantis.class.php:682 inc/mantis.class.php:828
257257
msgid "Attachments"
258258
msgstr "Přílohy"
259259

260-
#: inc/mantis.class.php:680 inc/mantis.class.php:826
260+
#: inc/mantis.class.php:685 inc/mantis.class.php:831
261261
msgid "Forward attachments"
262262
msgstr "Přeposlat přílohy"
263263

264-
#: inc/mantis.class.php:770
264+
#: inc/mantis.class.php:775
265265
msgid "Exact MantisBT project name"
266266
msgstr "Přesný název projektu v MantisBT"
267267

268-
#: inc/mantis.class.php:775
268+
#: inc/mantis.class.php:780
269269
msgid "Click to load project from MantisBT"
270270
msgstr "Kliknutím načtěte projekt z MantisBT"
271271

272-
#: inc/mantis.class.php:818
272+
#: inc/mantis.class.php:823
273273
msgid "Steps to reproduce"
274274
msgstr "Kroky vedoucí k zopakování"
275275

276-
#: inc/mantis.class.php:834
276+
#: inc/mantis.class.php:839
277277
msgid "Forward followups"
278278
msgstr "Přeposlat následnou komunikaci"
279279

280-
#: inc/mantis.class.php:842
280+
#: inc/mantis.class.php:847
281281
msgid "Forward tasks"
282282
msgstr "Přeposlat úkoly"
283283

284-
#: inc/mantis.class.php:873
284+
#: inc/mantis.class.php:878
285285
msgid "Link"
286286
msgstr "Odkaz"
287287

288-
#: inc/mantis.class.php:914
288+
#: inc/mantis.class.php:919
289289
msgid "List of linked MantisBT issues"
290290
msgstr "Seznam odkazovaných hlášení v MantisBT"
291291

292-
#: inc/mantis.class.php:959
292+
#: inc/mantis.class.php:964
293293
msgid "Error when loading MantisBT issue"
294294
msgstr "Chyba při načítání hlášení z MantisBT"
295295

296-
#: inc/mantis.class.php:990
296+
#: inc/mantis.class.php:995
297297
msgid "This GLPi object is not linked to MantisBT"
298298
msgstr "Tento GLPi objekt není propojen s MantisBT"
299299

300-
#: inc/mantis.class.php:996
300+
#: inc/mantis.class.php:1001
301301
msgid "Escalation to MantisBT is neutralized by GLPi status"
302302
msgstr "Eskalace do MantisBT je neutralizována stavem v GLPi"
303303

locales/en_GB.mo

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)