Skip to content

Commit

Permalink
Merge branch 'release/0.8.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
haru committed Nov 7, 2018
2 parents 38c66a8 + 71d7d8c commit 406ba50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/models/wiki_extensions_tag_relation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class WikiExtensionsTagRelation < ActiveRecord::Base
validates_uniqueness_of :tag_id, :scope => :wiki_page_id

def destroy
target_tag_id = tag_id
super
ret = super
target_tag = WikiExtensionsTag.find(tag_id) if tag_id
target_tag.destroy if target_tag.page_count == 0
target_tag.destroy if target_tag.page_count.zero?
ret
end

end
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
author_url 'http://twitter.com/haru_iida'
description 'This is a Wiki Extensions plugin for Redmine'
url "http://www.r-labs.org/projects/r-labs/wiki/Wiki_Extensions_en"
version '0.8.1'
version '0.8.2'
requires_redmine :version_or_higher => '3.4.0'

project_module :wiki_extensions do
Expand Down

0 comments on commit 406ba50

Please sign in to comment.