mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05:00
Corrected Check Ins view to show the checked-in user, not the user who logged the check in
This commit is contained in:
parent
b67062fb32
commit
adeca0e08a
@ -8,8 +8,8 @@ class CheckIns < Netzke::Basepack::Grid
|
||||
where("start_date >= ?", Time.zone.now.beginning_of_day);
|
||||
}
|
||||
c.columns = [
|
||||
{ :name => :logged_by, :getter => lambda{ |rec|
|
||||
user = User.find_by_id(rec.logger_id)
|
||||
{ :name => :name, :getter => lambda{ |rec|
|
||||
user = User.find_by_id(rec.loggable_id)
|
||||
user.nil? ? "" : "#{user.first_name} #{user.last_name}"
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user