From f8d12591d3fa7841bd156d7f912dc28130291c08 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Sat, 13 Jul 2019 09:42:22 +0800 Subject: [PATCH] fix --- app/helpers/application_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 87a0e22b..7192d736 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -7461,7 +7461,11 @@ def tiding_url tiding when 'Library' tiding.tiding_type == 'Apply' ? library_applies_path : library_path(tiding.container_id) when 'ProjectPackage' - tiding.container.present? ? "/project_packages/#{tiding.container_id}" : 'javascript:void(0)' + if tiding.container.present? + tiding.tiding_type == 'Apply' ? project_package_applies_path : "/project_packages/#{tiding.container_id}" + else + 'javascript:void(0)' + end end end