Pass the payment settings model to a helper

This commit is contained in:
Narek Zakarian 2025-03-24 18:22:20 +04:00
parent 70cf8214a5
commit c8c7b3cfc2
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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;