Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
9ca7310c
Commit
9ca7310c
authored
Oct 21, 2014
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1082882: custom date field not recognized as date type in advanced search
r=glob,a=glob
parent
959d0d72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
14 deletions
+23
-14
Search.pm
Bugzilla/Search.pm
+23
-14
No files found.
Bugzilla/Search.pm
View file @
9ca7310c
...
@@ -327,20 +327,29 @@ use constant OPERATOR_FIELD_OVERRIDE => {
...
@@ -327,20 +327,29 @@ use constant OPERATOR_FIELD_OVERRIDE => {
# These are fields where special action is taken depending on the
# These are fields where special action is taken depending on the
# *value* passed in to the chart, sometimes.
# *value* passed in to the chart, sometimes.
use
constant
SPECIAL_PARSING
=>
{
# This is a sub because custom fields are dynamic
# Pronoun Fields (Ones that can accept %user%, etc.)
sub
SPECIAL_PARSING
{
assigned_to
=>
\&
_contact_pronoun
,
my
$map
=
{
cc
=>
\&
_contact_pronoun
,
# Pronoun Fields (Ones that can accept %user%, etc.)
commenter
=>
\&
_contact_pronoun
,
assigned_to
=>
\&
_contact_pronoun
,
qa_contact
=>
\&
_contact_pronoun
,
cc
=>
\&
_contact_pronoun
,
reporter
=>
\&
_contact_pronoun
,
commenter
=>
\&
_contact_pronoun
,
'setters.login_name'
=>
\&
_contact_pronoun
,
qa_contact
=>
\&
_contact_pronoun
,
'requestees.login_name'
=>
\&
_contact_pronoun
,
reporter
=>
\&
_contact_pronoun
,
'setters.login_name'
=>
\&
_contact_pronoun
,
# Date Fields that accept the 1d, 1w, 1m, 1y, etc. format.
'requestees.login_name'
=>
\&
_contact_pronoun
,
creation_ts
=>
\&
_timestamp_translate
,
deadline
=>
\&
_timestamp_translate
,
# Date Fields that accept the 1d, 1w, 1m, 1y, etc. format.
delta_ts
=>
\&
_timestamp_translate
,
creation_ts
=>
\&
_timestamp_translate
,
deadline
=>
\&
_timestamp_translate
,
delta_ts
=>
\&
_timestamp_translate
,
};
foreach
my
$field
(
Bugzilla
->
active_custom_fields
)
{
if
(
$field
->
type
==
FIELD_TYPE_DATETIME
)
{
$map
->
{
$field
->
name
}
=
\&
_timestamp_translate
;
}
}
return
$map
;
};
};
# Information about fields that represent "users", used by _user_nonchanged.
# Information about fields that represent "users", used by _user_nonchanged.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment