Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Don't reset group if it is already set (preserve errors).
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m committed Oct 13, 2008
1 parent 8572a69 commit a9545d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/groups_controller.rb
Expand Up @@ -96,7 +96,7 @@ def create
end

def edit
@group = Group.find(params[:id])
@group ||= Group.find(params[:id])
if @logged_in.can_edit?(@group)
@unlinked_ids = @group.unlinked_members.map { |p| p.id }
@categories = Group.categories.keys
Expand Down

0 comments on commit a9545d4

Please sign in to comment.