Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Bug 1170021 - quota warning not displayed after cartridge add in the …
Browse files Browse the repository at this point in the history
…web console
  • Loading branch information
jwforres committed Dec 3, 2014
1 parent 160f134 commit a3637f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions console/app/controllers/cartridges_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ def create
if @cartridge.save
@wizard = true

message = @cartridge.remote_results
flash[:info_pre] = message
# Only grab the warnings otherwise we end up with extra success / remote result messages not formatted how we want
messages = flash_messages(@cartridge.messages.select{ |m| m['severity'] == 'warning' }, {})
result = @cartridge.remote_results
messages[:info_pre] = result

redirect_to application_path(@application)
redirect_to application_path(@application), :flash => messages
else
Rails.logger.debug @cartridge.errors.inspect
@application_id = @application.id
Expand Down

0 comments on commit a3637f2

Please sign in to comment.