Skip to content

Commit

Permalink
765995 fix notification messages when orgs created with supplied envs
Browse files Browse the repository at this point in the history
  • Loading branch information
swarmingbee committed Jan 11, 2012
1 parent 8561d65 commit d2b2f7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/controllers/organizations_controller.rb
Expand Up @@ -86,7 +86,9 @@ def create
end

if search_validate(Organization, @organization.id, params[:search])
notice [_("Organization '#{@organization["name"]}' was created."), _("Click on 'Add Environment' to create the first environment")]
collected = [_("Organization '#{@organization["name"]}' was created.")]
collected.push(_("Click on 'Add Environment' to create the first environment")) if @new_env.nil?
notice collected
render :partial=>"common/list_item", :locals=>{:item=>@organization, :accessor=>"cp_key", :columns=>['name'], :name=>controller_display_name}
else
notice _("Organization '#{@organization["name"]}' was created.")
Expand Down

0 comments on commit d2b2f7d

Please sign in to comment.