X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cbba74fcd57b7b81337d44c2e663ba317e6538de..8ee2f83955b1b71571aa428335340f505c3c2264:/apps/workbench/app/controllers/work_unit_templates_controller.rb diff --git a/apps/workbench/app/controllers/work_unit_templates_controller.rb b/apps/workbench/app/controllers/work_unit_templates_controller.rb index 6b5f114a66..fe53ac403c 100644 --- a/apps/workbench/app/controllers/work_unit_templates_controller.rb +++ b/apps/workbench/app/controllers/work_unit_templates_controller.rb @@ -6,8 +6,10 @@ class WorkUnitTemplatesController < ApplicationController @filters = @filters || [] # get next page of pipeline_templates - filters = @filters + [["uuid", "is_a", ["arvados#pipelineTemplate"]]] - pipelines = PipelineTemplate.limit(@limit).order(["created_at desc"]).filter(filters) + if PipelineTemplate.api_exists?(:index) + filters = @filters + [["uuid", "is_a", ["arvados#pipelineTemplate"]]] + pipelines = PipelineTemplate.limit(@limit).order(["created_at desc"]).filter(filters) + end # get next page of workflows filters = @filters + [["uuid", "is_a", ["arvados#workflow"]]]