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
db2e681e
Commit
db2e681e
authored
Feb 01, 2010
by
Frédéric Buclin
Committed by
Max Kanat-Alexander
Feb 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 534057: Auto-completion no longer works in email_in.pl
Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
parent
2502c9ff
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
9 deletions
+26
-9
Flag.pm
Bugzilla/Flag.pm
+2
-2
User.pm
Bugzilla/User.pm
+0
-0
editcomponents.cgi
editcomponents.cgi
+2
-2
editwhines.cgi
editwhines.cgi
+1
-1
email_in.pl
email_in.pl
+11
-0
post_bug.cgi
post_bug.cgi
+1
-1
process_bug.cgi
process_bug.cgi
+1
-1
request.cgi
request.cgi
+1
-1
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+6
-0
userprefs.cgi
userprefs.cgi
+1
-1
No files found.
Bugzilla/Flag.pm
View file @
db2e681e
...
...
@@ -790,9 +790,9 @@ sub extract_flags_from_cgi {
my
(
$class
,
$bug
,
$attachment
,
$vars
,
$skip
)
=
@_
;
my
$cgi
=
Bugzilla
->
cgi
;
my
$match_status
=
Bugzilla::User::
match_field
(
$cgi
,
{
my
$match_status
=
Bugzilla::User::
match_field
({
'^requestee(_type)?-(\d+)$'
=>
{
'type'
=>
'multi'
},
},
$skip
);
},
undef
,
$skip
);
$vars
->
{
'match_field'
}
=
'requestee'
;
if
(
$match_status
==
USER_MATCH_FAILED
)
{
...
...
Bugzilla/User.pm
View file @
db2e681e
This diff is collapsed.
Click to expand it.
editcomponents.cgi
View file @
db2e681e
...
...
@@ -118,7 +118,7 @@ if ($action eq 'add') {
if
(
$action
eq
'new'
)
{
check_token_data
(
$token
,
'add_component'
);
# Do the user matching
Bugzilla::User::
match_field
(
$cgi
,
{
Bugzilla::User::
match_field
({
'initialowner'
=>
{
'type'
=>
'single'
},
'initialqacontact'
=>
{
'type'
=>
'single'
},
'initialcc'
=>
{
'type'
=>
'multi'
},
...
...
@@ -219,7 +219,7 @@ if ($action eq 'edit') {
if
(
$action
eq
'update'
)
{
check_token_data
(
$token
,
'edit_component'
);
# Do the user matching
Bugzilla::User::
match_field
(
$cgi
,
{
Bugzilla::User::
match_field
({
'initialowner'
=>
{
'type'
=>
'single'
},
'initialqacontact'
=>
{
'type'
=>
'single'
},
'initialcc'
=>
{
'type'
=>
'multi'
},
...
...
editwhines.cgi
View file @
db2e681e
...
...
@@ -193,7 +193,7 @@ if ($cgi->param('update')) {
}
}
if
(
scalar
%
{
$arglist
})
{
&
Bugzilla::User::
match_field
(
$cgi
,
$arglist
);
Bugzilla::User::
match_field
(
$arglist
);
}
for
my
$sid
(
@scheduleids
)
{
...
...
email_in.pl
View file @
db2e681e
...
...
@@ -152,6 +152,17 @@ sub post_bug {
$fields
->
{
$field
}
=
undef
if
!
exists
$fields
->
{
$field
};
}
my
(
$retval
,
$non_conclusive_fields
)
=
Bugzilla::User::
match_field
({
'assigned_to'
=>
{
'type'
=>
'single'
},
'qa_contact'
=>
{
'type'
=>
'single'
},
'cc'
=>
{
'type'
=>
'multi'
}
},
$fields
,
MATCH_SKIP_CONFIRM
);
if
(
$retval
!=
USER_MATCH_SUCCESS
)
{
ThrowUserError
(
'user_match_too_many'
,
{
fields
=>
$non_conclusive_fields
});
}
my
$bug
=
Bugzilla::
Bug
->
create
(
$fields
);
debug_print
(
"Created bug "
.
$bug
->
id
);
return
(
$bug
,
$bug
->
comments
->
[
0
]);
...
...
post_bug.cgi
View file @
db2e681e
...
...
@@ -85,7 +85,7 @@ if ($token) {
}
# do a match on the fields if applicable
Bugzilla::User::
match_field
(
$cgi
,
{
Bugzilla::User::
match_field
({
'cc'
=>
{
'type'
=>
'multi'
},
'assigned_to'
=>
{
'type'
=>
'single'
},
'qa_contact'
=>
{
'type'
=>
'single'
},
...
...
process_bug.cgi
View file @
db2e681e
...
...
@@ -142,7 +142,7 @@ if (defined $cgi->param('dontchange')) {
}
# do a match on the fields if applicable
Bugzilla::User::
match_field
(
$cgi
,
{
Bugzilla::User::
match_field
({
'qa_contact'
=>
{
'type'
=>
'single'
},
'newcc'
=>
{
'type'
=>
'multi'
},
'masscc'
=>
{
'type'
=>
'multi'
},
...
...
request.cgi
View file @
db2e681e
...
...
@@ -63,7 +63,7 @@ unless (defined $cgi->param('requestee')
$fields
->
{
'requestee'
}
->
{
'type'
}
=
'single'
;
}
Bugzilla::User::
match_field
(
$
cgi
,
$
fields
);
Bugzilla::User::
match_field
(
$fields
);
if
(
$action
eq
'queue'
)
{
queue
();
...
...
template/en/default/global/user-error.html.tmpl
View file @
db2e681e
...
...
@@ -1628,6 +1628,12 @@
<tt>[% name FILTER html %]</tt> does not exist or you are not allowed
to see that user.
[% ELSIF error == "user_match_too_many" %]
[% title = "No Conclusive Match" %]
[% terms.Bugzilla %] cannot make a conclusive match for one or more
of the names and/or email addresses you entered for
the [% fields.join(', ') FILTER html %] field(s).
[% ELSIF error == "user_not_insider" %]
[% title = "User Not In Insidergroup" %]
Sorry, but you are not allowed to (un)mark comments or attachments
...
...
userprefs.cgi
View file @
db2e681e
...
...
@@ -247,7 +247,7 @@ sub SaveEmail {
my
$cgi
=
Bugzilla
->
cgi
;
my
$user
=
Bugzilla
->
user
;
Bugzilla::User::
match_field
(
$cgi
,
{
'new_watchedusers'
=>
{
'type'
=>
'multi'
}
});
Bugzilla::User::
match_field
({
'new_watchedusers'
=>
{
'type'
=>
'multi'
}
});
###########################################################################
# Role-based preferences
...
...
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