mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 08:43:31 +02:00
bug 3188: history search, trailing space in dates
git-svn-id: http://piwigo.org/svn/trunk@30956 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -75,14 +75,12 @@ if (isset($_POST['submit']))
|
||||
// dates
|
||||
if (!empty($_POST['start']))
|
||||
{
|
||||
$_POST['start'] = trim($_POST['start']);
|
||||
check_input_parameter('start', $_POST, false, '/^\d{4}-\d{2}-\d{2}$/');
|
||||
$search['fields']['date-after'] = $_POST['start'];
|
||||
}
|
||||
|
||||
if (!empty($_POST['end']))
|
||||
{
|
||||
$_POST['end'] = trim($_POST['end']);
|
||||
check_input_parameter('end', $_POST, false, '/^\d{4}-\d{2}-\d{2}$/');
|
||||
$search['fields']['date-before'] = $_POST['end'];
|
||||
}
|
||||
|
||||
@@ -107,6 +107,7 @@ jQuery.fn.pwgDatepicker = function(settings) {
|
||||
$this.datetimepicker(jQuery.extend({
|
||||
dateFormat: linked ? 'DD d MM yy' : 'yy-mm-dd',
|
||||
timeFormat: 'HH:mm',
|
||||
separator: options.showTimepicker ? ' ' : '',
|
||||
|
||||
altField: linked ? $target : null,
|
||||
altFormat: 'yy-mm-dd',
|
||||
|
||||
Reference in New Issue
Block a user