Revision 680c9d5c
Von Moritz Bunkus vor fast 10 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
375 | 375 |
my $params = delete($::form->{requirement_spec}) || { }; |
376 | 376 |
my $cvars = delete($::form->{cvars}) || { }; |
377 | 377 |
|
378 |
# Forcefully make it clear to Rose which custom_variables exist (or don't), so that the ones added with »add_custom_variables« are visible when calling »custom_variables«. |
|
379 |
if ($is_new) { |
|
380 |
$params->{custom_variables} = []; |
|
381 |
} else { |
|
382 |
$self->requirement_spec->custom_variables; |
|
383 |
} |
|
384 |
|
|
378 | 385 |
$self->requirement_spec->assign_attributes(%{ $params }); |
379 | 386 |
|
380 | 387 |
foreach my $var (@{ $self->requirement_spec->cvars_by_config }) { |
Auch abrufbar als: Unified diff
Pflichtenhefte: CVars bei erfolglosem Speichern beibehalten