mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
attended field as true in new registrations created by admin
This commit is contained in:
parent
949cbd6a6c
commit
5437cd5226
2 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ class Admin::UsersController < ApplicationController
|
|||
person.update_attributes(params[:user][:people])
|
||||
begin
|
||||
params[:user][:conferences].each do |r|
|
||||
registration = person.registrations.new(:conference_id => r)
|
||||
registration = person.registrations.new(:conference_id => r, :attended => 't')
|
||||
registration.save!
|
||||
end
|
||||
redirect_to admin_conference_registrations_path(@conference.short_title)
|
||||
|
|
@ -61,4 +61,4 @@ class Admin::UsersController < ApplicationController
|
|||
redirect_to(:back, :alert => "Please select at least one conference to register.")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue