Browse Source

#91 Dates must be in YYYY-MM-DD format

To prevent any ambiguous M/D/Y vs D/M/Y dates
merge-requests/2/head
Mike Koch 7 years ago
parent
commit
b449953950
  1. 2
      admin/new_ticket.php
  2. 2
      index.php
  3. 3
      js/modsForHesk-javascript.js
  4. 2
      language/en/text.php

2
admin/new_ticket.php

@ -353,6 +353,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<div class="col-sm-9">
<input type="text" class="datepicker form-control white-readonly '.$cls.'" placeholder="'.$v['name'].'" id="'.$v['name'].'" name="'.$k.'" size="40"
maxlength="'.$v['maxlen'].'" value="'.$v['value'].'" readonly/>
<span class="help-block">'.$hesklang['date_format'].'</span>
</div>
</div>';
break;
@ -530,6 +531,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<div class="col-sm-9">
<input type="text" class="datepicker form-control white-readonly '.$cls.'" placeholder="'.$v['name'].'" id="'.$v['name'].'" name="'.$k.'" size="40"
maxlength="'.$v['maxlen'].'" value="'.$v['value'].'" readonly/>
<span class="help-block">'.$hesklang['date_format'].'</span>
</div>
</div>';
break;

2
index.php

@ -382,6 +382,7 @@ function print_add_ticket()
<div class="col-sm-9">
<input type="text" class="datepicker form-control white-readonly '.$cls.'" placeholder="'.$v['name'].'" id="'.$v['name'].'" name="'.$k.'" size="40"
maxlength="'.$v['maxlen'].'" value="'.$v['value'].'" readonly/>
<span class="help-block">'.$hesklang['date_format'].'</span>
</div>
</div>';
break;
@ -610,6 +611,7 @@ function print_add_ticket()
<div class="col-sm-9">
<input type="text" class="datepicker form-control white-readonly '.$cls.'" placeholder="'.$v['name'].'" id="'.$v['name'].'" name="'.$k.'" size="40"
maxlength="'.$v['maxlen'].'" value="'.$v['value'].'" readonly/>
<span class="help-block">'.$hesklang['date_format'].'</span>
</div>
</div>';
break;

3
js/modsForHesk-javascript.js

@ -15,7 +15,8 @@ var loadJquery = function()
todayBtn: "linked",
clearBtn: true,
autoclose: true,
todayHighlight: true
todayHighlight: true,
format: "yyyy-mm-dd"
});
});
};

2
language/en/text.php

@ -26,7 +26,7 @@ $hesklang['date_custom_field'] = 'Date';
$hesklang['date_custom_field_text'] = 'No options for this custom field type.';
$hesklang['multiple_select_custom_field'] = 'Multiple Select box';
$hesklang['multiple_select_custom_field_text'] = 'Options for this multi-select box, enter one option per line (each line will be a choice your customers can choose from). You need to enter at least two options!';
$hesklang['invalid_date_format'] = 'Date must be in YYYY-MM-DD format.';
$hesklang['date_format'] = 'Date must be in YYYY-MM-DD format.';
// ADDED OR MODIFIED IN Mods For HESK 1.6.0
$hesklang['ticket_closed'] = '[#%%TRACK_ID%%] Ticket closed/resolved';

Loading…
Cancel
Save