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
663c65a3
Commit
663c65a3
authored
Feb 02, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 543500: Cannot add/edit components anymore (regression in user matching)
r/a=mkanat
parent
b0642d67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
User.pm
Bugzilla/User.pm
+12
-12
No files found.
Bugzilla/User.pm
View file @
663c65a3
...
...
@@ -1197,25 +1197,21 @@ sub match_field {
}
$raw_field
=
clean_text
(
$raw_field
||
''
);
# Tolerate fields that do not exist (in case you specify
# e.g. the QA contact, and it's currently not in use).
next
unless
(
$raw_field
&&
$raw_field
ne
''
);
my
@queries
=
();
# Now we either split $raw_field by spaces/commas and put the list
# into @queries, or in the case of fields which only accept single
# entries, we simply use the verbatim text.
# single field
my
@queries
;
if
(
$fields
->
{
$field
}
->
{
'type'
}
eq
'single'
)
{
@queries
=
(
$raw_field
);
# multi-field
# We will repopulate it later if a match is found, else it must
# be set to an empty string so that the field remains defined.
$data
->
{
$field
}
=
''
;
}
elsif
(
$fields
->
{
$field
}
->
{
'type'
}
eq
'multi'
)
{
@queries
=
split
(
/[\s,;]+/
,
$raw_field
);
# We will repopulate it later if a match is found, else it must
# be undefined.
delete
$data
->
{
$field
};
}
else
{
# bad argument
...
...
@@ -1225,6 +1221,10 @@ sub match_field {
});
}
# Tolerate fields that do not exist (in case you specify
# e.g. the QA contact, and it's currently not in use).
next
unless
(
defined
$raw_field
&&
$raw_field
ne
''
);
my
$limit
=
0
;
if
(
$params
->
{
'maxusermatches'
})
{
$limit
=
$params
->
{
'maxusermatches'
}
+
1
;
...
...
@@ -1284,7 +1284,7 @@ sub match_field {
if
(
$fields
->
{
$field
}
->
{
'type'
}
eq
'single'
)
{
$data
->
{
$field
}
=
$logins
[
0
]
||
''
;
}
els
e
{
els
if
(
scalar
@logins
)
{
$data
->
{
$field
}
=
\
@logins
;
}
}
...
...
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