diff --git a/app/models/tag.rb b/app/models/tag.rb index 242f4fccd..5f848236f 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -75,6 +75,8 @@ class Tag < ApplicationModel def self.tag_item_lookup( name ) + name = name.downcase + # use cache return @@cache_item[ name ] if @@cache_item[ name ] diff --git a/test/unit/tag_test.rb b/test/unit/tag_test.rb index df870f5c2..e9dfa346e 100644 --- a/test/unit/tag_test.rb +++ b/test/unit/tag_test.rb @@ -59,7 +59,7 @@ class TagTest < ActiveSupport::TestCase # test 4 { :tag_add => { - :item => 'tagöäüß2', + :item => 'Tagöäüß2', :object => 'Object2', :o_id => 123, :created_by_id => 1