diff options
author | Go MAEDA <maeda@farend.jp> | 2023-01-02 06:56:47 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-01-02 06:56:47 +0000 |
commit | 025323f5ba7b48d001ba59cc94b26967fdf1d4a1 (patch) | |
tree | 9e0eb5f49178e680b7d566d401fe7c57e46c91a5 /app/helpers/application_helper.rb | |
parent | bbd8e5a08a94bfb2447cba535b6fc1f03eb8a1cf (diff) | |
download | redmine-025323f5ba7b48d001ba59cc94b26967fdf1d4a1.tar.gz redmine-025323f5ba7b48d001ba59cc94b26967fdf1d4a1.zip |
Add guard clause to time_tag method to handle nil time (#38139).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22022 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e599cc32e..a4bf27e57 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -694,6 +694,8 @@ module ApplicationHelper end def time_tag(time) + return if time.nil? + text = distance_of_time_in_words(Time.now, time) if @project link_to(text, |