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
a0aab8f3
Commit
a0aab8f3
authored
Jul 18, 2011
by
Tiago Mello
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 671964: Move old field names conversion from do_search_function
to _handle_chart(). r/a=mkanat
parent
53578fb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Search.pm
Bugzilla/Search.pm
+6
-7
No files found.
Bugzilla/Search.pm
View file @
a0aab8f3
...
@@ -1612,6 +1612,8 @@ sub _handle_chart {
...
@@ -1612,6 +1612,8 @@ sub _handle_chart {
my
$params
=
$self
->
_params
;
my
$params
=
$self
->
_params
;
my
(
$field
,
$operator
,
$value
)
=
$condition
->
fov
;
my
(
$field
,
$operator
,
$value
)
=
$condition
->
fov
;
$field
=
FIELD_MAP
->
{
$field
}
||
$field
;
return
if
(
!
defined
$field
or
!
defined
$operator
or
!
defined
$value
);
return
if
(
!
defined
$field
or
!
defined
$operator
or
!
defined
$value
);
my
$string_value
;
my
$string_value
;
...
@@ -1677,10 +1679,7 @@ sub do_search_function {
...
@@ -1677,10 +1679,7 @@ sub do_search_function {
my
(
$self
,
$args
)
=
@_
;
my
(
$self
,
$args
)
=
@_
;
my
(
$field
,
$operator
)
=
@$args
{
qw(field operator)
};
my
(
$field
,
$operator
)
=
@$args
{
qw(field operator)
};
my
$actual_field
=
FIELD_MAP
->
{
$field
}
||
$field
;
if
(
my
$parse_func
=
SPECIAL_PARSING
->
{
$field
})
{
$args
->
{
field
}
=
$actual_field
;
if
(
my
$parse_func
=
SPECIAL_PARSING
->
{
$actual_field
})
{
$self
->
$parse_func
(
$args
);
$self
->
$parse_func
(
$args
);
# Some parsing functions set $term, though most do not.
# Some parsing functions set $term, though most do not.
# For the ones that set $term, we don't need to do any further
# For the ones that set $term, we don't need to do any further
...
@@ -1689,15 +1688,15 @@ sub do_search_function {
...
@@ -1689,15 +1688,15 @@ sub do_search_function {
}
}
my
$operator_field_override
=
$self
->
_get_operator_field_override
();
my
$operator_field_override
=
$self
->
_get_operator_field_override
();
my
$override
=
$operator_field_override
->
{
$
actual_
field
};
my
$override
=
$operator_field_override
->
{
$field
};
# Attachment fields get special handling, if they don't have a specific
# Attachment fields get special handling, if they don't have a specific
# individual override.
# individual override.
if
(
!
$override
and
$
actual_
field
=~
/^attachments\./
)
{
if
(
!
$override
and
$field
=~
/^attachments\./
)
{
$override
=
$operator_field_override
->
{
attachments
};
$override
=
$operator_field_override
->
{
attachments
};
}
}
# If there's still no override, check for an override on the field's type.
# If there's still no override, check for an override on the field's type.
if
(
!
$override
)
{
if
(
!
$override
)
{
my
$field_obj
=
$self
->
_chart_fields
->
{
$
actual_
field
};
my
$field_obj
=
$self
->
_chart_fields
->
{
$field
};
$override
=
$operator_field_override
->
{
$field_obj
->
type
};
$override
=
$operator_field_override
->
{
$field_obj
->
type
};
}
}
...
...
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