mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Pass the payment settings model to a helper
This commit is contained in:
parent
70cf8214a5
commit
c8c7b3cfc2
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ class SettingsMapHelper {
|
|||
: $this->settings_tab_map_helper->mapped_value( $old_key, $this->model_cache[ $model_id ] );
|
||||
|
||||
case $model instanceof PaymentSettings:
|
||||
return $this->payment_method_settings_map_helper->mapped_value( $old_key );
|
||||
return $this->payment_method_settings_map_helper->mapped_value( $old_key, $this->get_payment_settings_model() );
|
||||
|
||||
default:
|
||||
return $this->model_cache[ $model_id ][ $new_key ] ?? null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue