kaui 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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