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
6e6093a1
Commit
6e6093a1
authored
Jan 05, 2016
by
Mahdi Mokhtari
Committed by
Frédéric Buclin
Jan 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1235270: Set submitter_id before calling _check_data()
r=LpSolit a=dkl
parent
f7293523
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Attachment.pm
Bugzilla/Attachment.pm
+2
-1
No files found.
Bugzilla/Attachment.pm
View file @
6e6093a1
...
...
@@ -865,6 +865,8 @@ sub create {
sub
run_create_validators
{
my
(
$class
,
$params
)
=
@_
;
$params
->
{
submitter_id
}
=
Bugzilla
->
user
->
id
||
ThrowUserError
(
'invalid_user'
);
# Let's validate the attachment content first as it may
# alter some other attachment attributes.
$params
->
{
data
}
=
$class
->
_check_data
(
$params
);
...
...
@@ -872,7 +874,6 @@ sub run_create_validators {
$params
->
{
creation_ts
}
||=
Bugzilla
->
dbh
->
selectrow_array
(
'SELECT LOCALTIMESTAMP(0)'
);
$params
->
{
modification_time
}
=
$params
->
{
creation_ts
};
$params
->
{
submitter_id
}
=
Bugzilla
->
user
->
id
||
ThrowUserError
(
'invalid_user'
);
return
$params
;
}
...
...
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