From 63925f6666b43425d903c687568e81eb06862669 Mon Sep 17 00:00:00 2001 From: bohung Date: Tue, 11 Aug 2020 17:12:31 +0800 Subject: [PATCH] Fix bugs. --- app/views/admin/venue_management_contracts/_index.html.erb | 3 ++- app/views/venue_managements/show_contract.html.erb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/admin/venue_management_contracts/_index.html.erb b/app/views/admin/venue_management_contracts/_index.html.erb index c53e4e7..23e7757 100644 --- a/app/views/admin/venue_management_contracts/_index.html.erb +++ b/app/views/admin/venue_management_contracts/_index.html.erb @@ -19,7 +19,8 @@ <%= contract.venue_management_main.title %> <% end %> - <%= link_to contract.case_no, (@venue_management_page_url.blank? ? "#" : "/#{I18n.locale}"+@venue_management_page_url+"/#{contract.case_no.strip}-#{contract.id}?method=show_contract"), :target => '_self' %> + <% case_no = (contract.case_no.nil? ? t(:empty) : contract.case_no) %> + <%= link_to case_no, (@venue_management_page_url.blank? ? "#" : "/#{I18n.locale}"+@venue_management_page_url+"/#{case_no.to_s.strip}-#{contract.id}?method=show_contract"), :target => '_self' %>