Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Daniel Lennartz
vtigercrm
Commits
d97a9c5e
Commit
d97a9c5e
authored
4 years ago
by
Uma
Browse files
Options
Downloads
Patches
Plain Diff
Fixes #1409, #1410 Date range filter selection
parent
d022512f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/CustomView/models/Record.php
+12
-1
12 additions, 1 deletion
modules/CustomView/models/Record.php
with
12 additions
and
1 deletion
modules/CustomView/models/Record.php
+
12
−
1
View file @
d97a9c5e
...
...
@@ -410,7 +410,18 @@ class CustomView_Record_Model extends Vtiger_Base_Model {
$val
[
$x
]
=
DateTimeField
::
convertToDBFormat
(
trim
(
$temp_val
[
$x
]));
}
elseif
(
$fieldType
==
'datetime'
)
{
$val
[
$x
]
=
$date
->
getDBInsertDateTimeValue
();
if
(
$advFilterComparator
==
'bw'
||
$advFilterComparator
==
'custom'
)
{
$dates
=
explode
(
' '
,
$temp_val
[
$x
]);
if
(
empty
(
$dates
[
1
]))
{
if
(
$x
==
'0'
)
{
$filterValue
=
trim
(
$temp_val
[
$x
])
.
' 00:00:00'
;
}
elseif
(
$x
==
'1'
)
{
$filterValue
=
trim
(
$temp_val
[
$x
])
.
' 23:59:59'
;
}
}
$date
=
new
DateTimeField
(
$filterValue
);
}
$val
[
$x
]
=
$date
->
getDBInsertDateTimeValue
();
}
else
{
$val
[
$x
]
=
$date
->
getDBInsertTimeValue
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment