mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 08:38:45 +02:00
Advanced Search: Dates between
SVN:b1162[5500]
This commit is contained in:
@@ -260,15 +260,7 @@ class CriterionToSearchForm extends CriterionConversionAbstract
|
||||
$sFirstDate = $aCurrCriterion['values'][0]['value'];
|
||||
$oDate = new DateTime($sLastDate);
|
||||
$aCurrCriterion['operator'] = 'between_dates';
|
||||
$sPattern = '@^[\d-]{10}( 00:00:00)?$@';
|
||||
if (preg_match($sPattern, $sFirstDate) && preg_match($sPattern, $sLastDate))
|
||||
{
|
||||
$sInterval = '1 day';
|
||||
}
|
||||
else
|
||||
{
|
||||
$sInterval = '1 second';
|
||||
}
|
||||
$sInterval = '1 second';
|
||||
|
||||
if ($sPrevOperator == '<')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user