Fix problem with undefined constants for Tags #35

This commit is contained in:
Alexander Meindl 2018-12-11 22:37:48 +01:00
parent f440afd0c6
commit 3008a5dc21
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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)