From 3008a5dc2118e71315ffdd7741b928d832b12fe3 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Tue, 11 Dec 2018 22:37:48 +0100 Subject: [PATCH] Fix problem with undefined constants for Tags #35 --- CHANGELOG.rst | 5 +++-- app/models/additionals_tag.rb | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 78b45f08..8f2b7706 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,9 +1,10 @@ Changelog ========= -2.0.17-dev -++++++++++ +2.0.17 +++++++ +- Fix bug with undefined constant for tags - add possibility to use custom date with date macro diff --git a/app/models/additionals_tag.rb b/app/models/additionals_tag.rb index 7ea0e81d..2ea58ea2 100644 --- a/app/models/additionals_tag.rb +++ b/app/models/additionals_tag.rb @@ -1,6 +1,6 @@ class AdditionalsTag - TAG_TABLE_NAME = RedmineCrm::Tag.table_name - TAGGING_TABLE_NAME = RedmineCrm::Tagging.table_name + TAG_TABLE_NAME = RedmineCrm::Tag.table_name if defined? RedmineCrm + TAGGING_TABLE_NAME = RedmineCrm::Tagging.table_name if defined? RedmineCrm PROJECT_TABLE_NAME = Project.table_name def self.get_available_tags(klass, options = {}, permission = nil)