Actions
Bug #23334
opentemplates history doesn't order correctly
Description
The current ordering doesn't work:
irb(main):027:0> Audit.descending.where(:auditable_id => 111, :auditable_type => 'ProvisioningTemplate', :action => 'update').second.created_at
=> Fri, 16 Mar 2018 15:46:56 UTC +00:00
irb(main):028:0> Audit.descending.where(:auditable_id => 111, :auditable_type => 'ProvisioningTemplate', :action => 'update').last.created_at
=> Wed, 21 Mar 2018 16:27:10 UTC +00:00
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/5466 added
Actions