Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e71def0d

Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt

  • ID e71def0da9c475418523474f6ac65efbabe210c1
  • Vorgänger 502a10d4
  • Nachfolger cc3ed374

SL::Auth: Typo in Methodennamen korrigiert: create_unique_sesion_value …

-> create_unique_session_value

Unterschiede anzeigen:

SL/Auth.pm
879 879
  ($self->{SESSION}{$key} //= SL::Auth::SessionValue->new(auth => $self, key => $key))->get
880 880
}
881 881

  
882
sub create_unique_sesion_value {
882
sub create_unique_session_value {
883 883
  my ($self, $value, %params) = @_;
884 884

  
885 885
  $self->{SESSION} ||= { };
......
912 912
    $data->{$key} = $form->{$key} if !ref($form->{$key}) || $non_scalars;
913 913
  }
914 914

  
915
  return $self->create_unique_sesion_value($data, %params);
915
  return $self->create_unique_session_value($data, %params);
916 916
}
917 917

  
918 918
sub restore_form_from_session {
......
1332 1332
Retrieve a value from the session. Returns C<undef> if the value
1333 1333
doesn't exist.
1334 1334

  
1335
=item C<create_unique_sesion_value $value, %params>
1335
=item C<create_unique_session_value $value, %params>
1336 1336

  
1337 1337
Create a unique key in the session and store C<$value>
1338 1338
there.
......
1348 1348
=item C<save_form_in_session %params>
1349 1349

  
1350 1350
Stores the content of C<$params{form}> (default: C<$::form>) in the
1351
session using L</create_unique_sesion_value>.
1351
session using L</create_unique_session_value>.
1352 1352

  
1353 1353
If C<$params{non_scalars}> is trueish then non-scalar values will be
1354 1354
stored as well. Default is to only store scalar values.
SL/Controller/PartsPriceUpdate.pm
63 63
    return $self->action_search_update_prices;
64 64
  } else {
65 65

  
66
    my $key = $::auth->create_unique_sesion_value(SL::JSON::to_json($self->filter));
66
    my $key = $::auth->create_unique_session_value(SL::JSON::to_json($self->filter));
67 67

  
68 68
    $self->setup_confirm_price_update_action_bar;
69 69
    $self->render('ic/confirm_price_update',

Auch abrufbar als: Unified diff