Revision 8b9174e8
Von Moritz Bunkus vor fast 10 Jahren hinzugefügt
SL/DB/RequirementSpec.pm | ||
---|---|---|
175 | 175 |
%attributes); |
176 | 176 |
} |
177 | 177 |
|
178 |
# Copy custom variables. |
|
179 |
foreach my $var (@{ $source->cvars_by_config }) { |
|
180 |
$self->cvar_by_name($var->config->name)->value($var->value); |
|
181 |
} |
|
182 |
|
|
178 | 183 |
my %paste_template_result; |
179 | 184 |
|
180 | 185 |
# Clone text blocks and pictures. |
... | ... | |
207 | 212 |
$self->$accessor($paste_template_result{parts}); |
208 | 213 |
|
209 | 214 |
# Save new object -- we need its ID for the items. |
210 |
$self->save; |
|
215 |
$self->save(cascade => 1);
|
|
211 | 216 |
|
212 | 217 |
my %id_to_clone; |
213 | 218 |
|
Auch abrufbar als: Unified diff
Pflichtenhefte: benutzerdefinierte Variablen bei Version reverten kopieren