shop code
This commit is contained in:
@@ -26,7 +26,7 @@ class Settings::PaymentMethodSettingsController < ApplicationController
|
||||
# POST /settings/payment_method_settings.json
|
||||
def create
|
||||
@settings_payment_method_setting = PaymentMethodSetting.new(settings_payment_method_setting_params)
|
||||
@settings_payment_method_setting.shop_code = @shop.shop_code
|
||||
@settings_payment_method_setting.shop_code = Shop.current_shop.shop_code
|
||||
respond_to do |format|
|
||||
if @settings_payment_method_setting.save
|
||||
format.html { redirect_to settings_payment_method_settings_path, notice: 'Payment method setting was successfully created.' }
|
||||
|
||||
Reference in New Issue
Block a user