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
235eaf84
Commit
235eaf84
authored
Mar 16, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nits on bug 180652 - Frederic Buclin
parent
66172e4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
+8
-13
Flag.pm
Bugzilla/Flag.pm
+4
-10
attachment.cgi
attachment.cgi
+4
-3
No files found.
Bugzilla/Flag.pm
View file @
235eaf84
...
...
@@ -273,7 +273,7 @@ sub process {
# Take a snapshot of flags before any changes.
my
@old_summaries
=
snapshot
(
$bug_id
,
$attach_id
);
# Cancel
old request flag
s if we are obsoleting an attachment.
# Cancel
pending request
s if we are obsoleting an attachment.
if
(
$attach_id
&&
$data
->
{
'isobsolete'
})
{
CancelRequests
(
$bug_id
,
$attach_id
);
}
...
...
@@ -297,9 +297,7 @@ sub process {
AND i.type_id IS NULL"
,
undef
,
$bug_id
);
foreach
my
$flag_id
(
@$flag_ids
)
{
clear
(
$flag_id
);
}
foreach
my
$flag_id
(
@$flag_ids
)
{
clear
(
$flag_id
)
}
$flag_ids
=
$dbh
->
selectcol_arrayref
(
"SELECT flags.id
...
...
@@ -312,9 +310,7 @@ sub process {
AND (bugs.component_id = e.component_id OR e.component_id IS NULL)"
,
undef
,
$bug_id
);
foreach
my
$flag_id
(
@$flag_ids
)
{
clear
(
$flag_id
);
}
foreach
my
$flag_id
(
@$flag_ids
)
{
clear
(
$flag_id
)
}
# Take a snapshot of flags after changes.
my
@new_summaries
=
snapshot
(
$bug_id
,
$attach_id
);
...
...
@@ -681,9 +677,7 @@ sub CancelRequests {
# Take a snapshot of flags before any changes.
my
@old_summaries
=
snapshot
(
$bug_id
,
$attach_id
)
if
(
$timestamp
);
foreach
my
$flag
(
@$request_ids
)
{
clear
(
$flag
);
}
foreach
my
$flag
(
@$request_ids
)
{
clear
(
$flag
)
}
# If $timestamp is undefined, do not update the activity table
return
unless
(
$timestamp
);
...
...
attachment.cgi
View file @
235eaf84
...
...
@@ -1152,9 +1152,10 @@ sub update
SendSQL
(
"SELECT NOW()"
);
my
$timestamp
=
FetchOneColumn
();
# Update flags. These calls must be done before updating the
# 'attachments' table due to the deletion of request flags
# on attachments being obsoleted.
# Update flags. We have to do this before committing changes
# to attachments so that we can delete pending requests if the user
# is obsoleting this attachment without deleting any requests
# the user submits at the same time.
my
$target
=
Bugzilla::Flag::
GetTarget
(
undef
,
$::FORM
{
'id'
});
Bugzilla::Flag::
process
(
$target
,
$timestamp
,
\%::
FORM
);
...
...
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