From: Bernd Bleßmann Date: Thu, 18 Mar 2021 16:08:52 +0000 (+0100) Subject: SL::Auth: Typo in Methodennamen korrigiert: create_unique_sesion_value … X-Git-Tag: kivitendo-mebil_0.1-0~9^2~420 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e71def0da9c475418523474f6ac65efbabe210c1;p=kivitendo-erp.git SL::Auth: Typo in Methodennamen korrigiert: create_unique_sesion_value … -> create_unique_session_value --- diff --git a/SL/Auth.pm b/SL/Auth.pm index 33007a417..6be693382 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -879,7 +879,7 @@ sub get_session_value { ($self->{SESSION}{$key} //= SL::Auth::SessionValue->new(auth => $self, key => $key))->get } -sub create_unique_sesion_value { +sub create_unique_session_value { my ($self, $value, %params) = @_; $self->{SESSION} ||= { }; @@ -912,7 +912,7 @@ sub save_form_in_session { $data->{$key} = $form->{$key} if !ref($form->{$key}) || $non_scalars; } - return $self->create_unique_sesion_value($data, %params); + return $self->create_unique_session_value($data, %params); } sub restore_form_from_session { @@ -1332,7 +1332,7 @@ The values can be any Perl structure. They are stored as YAML dumps. Retrieve a value from the session. Returns C if the value doesn't exist. -=item C +=item C Create a unique key in the session and store C<$value> there. @@ -1348,7 +1348,7 @@ setters nor the deleter access the database. =item C Stores the content of C<$params{form}> (default: C<$::form>) in the -session using L. +session using L. If C<$params{non_scalars}> is trueish then non-scalar values will be stored as well. Default is to only store scalar values. diff --git a/SL/Controller/PartsPriceUpdate.pm b/SL/Controller/PartsPriceUpdate.pm index 9d24c503d..8481998d4 100644 --- a/SL/Controller/PartsPriceUpdate.pm +++ b/SL/Controller/PartsPriceUpdate.pm @@ -63,7 +63,7 @@ sub action_confirm_price_update { return $self->action_search_update_prices; } else { - my $key = $::auth->create_unique_sesion_value(SL::JSON::to_json($self->filter)); + my $key = $::auth->create_unique_session_value(SL::JSON::to_json($self->filter)); $self->setup_confirm_price_update_action_bar; $self->render('ic/confirm_price_update',