Revision 2384d945
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
241 | 241 |
} |
242 | 242 |
|
243 | 243 |
sub customer_picker { |
244 |
my ($self, $name, $value, %params) = @_;
|
|
244 |
my ($self, $name, $value, %params) = _hashify(3, @_);
|
|
245 | 245 |
my $name_e = _H($name); |
246 | 246 |
|
247 | 247 |
$::request->{layout}->add_javascripts('autocomplete_customer.js'); |
... | ... | |
252 | 252 |
|
253 | 253 |
# simple version with select_tag |
254 | 254 |
sub vendor_selector { |
255 |
my ($self, $name, $value, %params) = @_;
|
|
255 |
my ($self, $name, $value, %params) = _hashify(3, @_);
|
|
256 | 256 |
|
257 | 257 |
my $actual_vendor_id = (defined $::form->{"$name"})? ((ref $::form->{"$name"}) ? $::form->{"$name"}->id : $::form->{"$name"}) : |
258 | 258 |
(ref $value && $value->can('id')) ? $value->id : ''; |
... | ... | |
267 | 267 |
|
268 | 268 |
# simple version with select_tag |
269 | 269 |
sub part_selector { |
270 |
my ($self, $name, $value, %params) = @_;
|
|
270 |
my ($self, $name, $value, %params) = _hashify(3, @_);
|
|
271 | 271 |
|
272 | 272 |
my $actual_part_id = (defined $::form->{"$name"})? ((ref $::form->{"$name"})? $::form->{"$name"}->id : $::form->{"$name"}) : |
273 | 273 |
(ref $value && $value->can('id')) ? $value->id : ''; |
Auch abrufbar als: Unified diff
L: Parameterextraktion dreier Funktionen gefixt
Template übergibt Hash-Parameter als Hash-Ref, nicht direkt als Hash.