Lines 355-372
sub edititem {
Link Here
|
355 |
my $stage = $other->{stage}; |
355 |
my $stage = $other->{stage}; |
356 |
if ( !$stage || $stage eq 'init' ) { |
356 |
if ( !$stage || $stage eq 'init' ) { |
357 |
|
357 |
|
358 |
my $attrs = $params->{request}->extended_attributes->unblessed; |
358 |
my $attrs = $params->{request}->extended_attributes; |
359 |
|
359 |
|
360 |
# We need to identify which parameters are custom, and pass them |
360 |
# We need to identify which parameters are custom, and pass them |
361 |
# to the template in a predefined form |
361 |
# to the template in a predefined form |
362 |
my $custom_keys = []; |
362 |
my $custom_keys = []; |
363 |
my $custom_vals = []; |
363 |
my $custom_vals = []; |
364 |
foreach my $attr ( @{$attrs} ) { |
364 |
while ( my $attr = $attrs->next ) { |
365 |
if ( !$core->{ $attr->{type} } ) { |
365 |
if ( !$core->{ $attr->type } ) { |
366 |
push @{$custom_keys}, $attr->{type}; |
366 |
push @{$custom_keys}, $attr->type; |
367 |
push @{$custom_vals}, $attr->{value}; |
367 |
push @{$custom_vals}, $attr->value; |
368 |
} else { |
368 |
} else { |
369 |
$other->{ $attr->{type} } = $attr->{value}; |
369 |
$other->{ $attr->type } = $attr->value; |
370 |
} |
370 |
} |
371 |
} |
371 |
} |
372 |
$other->{'custom_key'} = join "\0", @{$custom_keys}; |
372 |
$other->{'custom_key'} = join "\0", @{$custom_keys}; |
373 |
- |
|
|