Skip to content

Commit 34d3aed

Browse files
committed
Fix error with datepickers
Fix cri generation
1 parent 496f63b commit 34d3aed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common/commonGLPIView.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ public function showJSfunction($functionName, $idDivAjax, $url, $listId, $params
118118
public function initDate($id) {
119119
$this->showHeaderJS();
120120
echo "$(function() {
121-
$( '#" . $id . "' ).datepicker({
122-
dateFormat : 'dd-mm-yy'
121+
$( '#" . $id . "' ).flatpickr({
122+
dateFormat : 'd-m-Y'
123123
});
124124
});";
125125

scripts/scripts-manageentities.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ function getManageentitiesFormData(form) {
318318
var unindexed_array = form.serialize();
319319
var indexed_array = {};
320320

321-
$.map(unindexed_array, function (n, i) {
322-
indexed_array[n['name']] = n['value'];
321+
$.map(unindexed_array.split('&'), function (n, i) {
322+
indexed_array[n.split('=')[0]] = n.split('=')[1];
323323
});
324324

325325
return JSON.stringify(indexed_array);

0 commit comments

Comments
 (0)