Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
changesets - fix notice type on successful promotion/deletion
This commit addresses the issue where the notices generated
for a successful promotion or deletion changeset was a
'sticky message'.
  • Loading branch information
bbuckingham committed Aug 16, 2012
1 parent e63b4b3 commit ea18172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/models/deletion_changeset.rb
Expand Up @@ -75,7 +75,7 @@ def delete_content(notify = false)

if notify
message = _("Successfully deleted changeset '%s'.") % self.name
Notify.message message, :request_type => "changesets___delete"
Notify.success message, :request_type => "changesets___delete"
end

rescue Exception => e
Expand Down
2 changes: 1 addition & 1 deletion src/app/models/promotion_changeset.rb
Expand Up @@ -89,7 +89,7 @@ def promote_content(notify = false)

if notify
message = _("Successfully promoted changeset '%s'.") % self.name
Notify.message message, :request_type => "changesets___promote"
Notify.success message, :request_type => "changesets___promote"
end

rescue Exception => e
Expand Down

0 comments on commit ea18172

Please sign in to comment.