kaui 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,8 +49,8 @@ class Kaui::AccountTagsController < Kaui::EngineController
49
49
  tags_to_add << new_tag_definition_id unless current_tags.include?(new_tag_definition_id)
50
50
  end
51
51
 
52
- Kaui::KillbillHelper::remove_tags_for_account(params[:account_id], tags_to_remove)
53
- Kaui::KillbillHelper::add_tags_for_account(params[:account_id], tags_to_add)
52
+ Kaui::KillbillHelper::remove_tags_for_account(params[:account_id], tags_to_remove) unless tags_to_remove.empty?
53
+ Kaui::KillbillHelper::add_tags_for_account(params[:account_id], tags_to_add) unless tags_to_add.empty?
54
54
  rescue => e
55
55
  flash[:error] = "Error while updating tags: #{as_string(e)}"
56
56
  end
data/lib/kaui/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kaui
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: kaui
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.14
5
+ version: 0.1.15
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alena Dudzinskaya