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