• Huzaifa Iftikhar's avatar
    Fix Date::Error exception when viewing audit logs for an invalid date · 2d306450
    Huzaifa Iftikhar authored
    Added an early return to the validate_date_params method to fix
    the exception raised when an invalid date is passed for either
    created_before or created_after parameter. Also, included the
    before_action validate_date_params to AuditLogReportsController to
    prevent exceptions.
    
    Changelog: fixed
    EE: true
    2d306450
audit_logs_controller_spec.rb 2.64 KB