Skip to content

Bad path when deleting active jobs #4699

@Bubballoo3

Description

@Bubballoo3

Attempting to delete a job from the activejobs page spawns a NameError because activejobs_path is undefined in ActiveJobsController.

redirect_to activejobs_path, :notice => "Successfully deleted #{job_id}"
rescue StandardError
redirect_to activejobs_path, :alert => "Failed to delete #{job_id}"
end
else
redirect_to activejobs_path, :alert => 'Failed to delete.'
end

This appears to be nothing more than a typo, as the route is defined to be active_jobs not activejobs

if Configuration.can_access_activejobs?
get '/activejobs' => 'active_jobs#index', :as => 'active_jobs'
get '/activejobs/json' => 'active_jobs#json', :defaults => { :format => 'json' }
delete '/activejobs' => 'active_jobs#delete_job', :as => 'delete_job'
end

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Reviewed, Closed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions