mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 20:00:12 +01:00
date fix for the gui
This commit is contained in:
parent
08aed7355c
commit
2153e0a79a
@ -362,7 +362,7 @@ class ModelSearchSearch extends Model {
|
|||||||
else if($v == 'note:') { $token = 'note'; continue; }
|
else if($v == 'note:') { $token = 'note'; continue; }
|
||||||
else if($v == 'ref:') { $token = 'ref'; continue; }
|
else if($v == 'ref:') { $token = 'ref'; continue; }
|
||||||
else if($v == 'id:') { $token = 'id'; continue; }
|
else if($v == 'id:') { $token = 'id'; continue; }
|
||||||
else {
|
else if($token != 'date1' && $token != 'date2') {
|
||||||
if(preg_match("/\d{4}\-\d{1,2}\-\d{1,2}/", $v) || preg_match("/\d{1,2}\/\d{1,2}\/\d{4}/", $v)) {
|
if(preg_match("/\d{4}\-\d{1,2}\-\d{1,2}/", $v) || preg_match("/\d{1,2}\/\d{1,2}\/\d{4}/", $v)) {
|
||||||
$ndate++;
|
$ndate++;
|
||||||
$a["date$ndate"] = $v;
|
$a["date$ndate"] = $v;
|
||||||
|
Loading…
Reference in New Issue
Block a user