app/controllers/kaui/custom_fields_controller.rb in kaui-3.0.2 vs app/controllers/kaui/custom_fields_controller.rb in kaui-3.0.4
- old
+ new
@@ -69,11 +69,11 @@
rescue StandardError
# Ignore
end
when :SUBSCRIPTION
begin
- test_uuid = Kaui::Subscription.find_by_id(param_uuid, options_for_klient)
+ test_uuid = Kaui::Subscription.find_by_id(param_uuid, 'NONE', options_for_klient)
rescue StandardError
# Ignore
end
when :INVOICE
begin
@@ -161,19 +161,19 @@
ensure
msg = { status: '200', message: I18n.translate('custom_field_uuid_exist_in_bundle_db') } if !test_uuid.blank? && (test_uuid.bundle_id == param_uuid)
end
when 'SUBSCRIPTION'
begin
- test_uuid = Kaui::Subscription.find_by_id(param_uuid, options_for_klient)
+ test_uuid = Kaui::Subscription.find_by_id(param_uuid, 'NONE', options_for_klient)
rescue StandardError
# Ignore
ensure
msg = { status: '200', message: I18n.translate('custom_field_uuid_exist_in_subscription_db') } if !test_uuid.blank? && (test_uuid.subscription_id == param_uuid)
end
when 'INVOICE'
begin
cached_options_for_klient = options_for_klient
- test_uuid = Kaui::Invoice.find_by_id(param_uuid, 'FULL', cached_options_for_klient)
+ test_uuid = Kaui::Invoice.find_by_id(param_uuid, false, 'FULL', cached_options_for_klient)
rescue StandardError
# Ignore
ensure
msg = { status: '200', message: I18n.translate('custom_field_uuid_exist_in_invoice_db') } if !test_uuid.blank? && (test_uuid.invoice_id == param_uuid)
end