projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a2fb69
)
Pflichtenhefte: benutzerdefinierte Variablen bei Version reverten kopieren
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 28 Jan 2015 15:02:44 +0000
(16:02 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 5 Mar 2015 12:42:58 +0000
(13:42 +0100)
SL/DB/RequirementSpec.pm
patch
|
blob
|
history
diff --git
a/SL/DB/RequirementSpec.pm
b/SL/DB/RequirementSpec.pm
index
bad9803
..
1cc1771
100644
(file)
--- a/
SL/DB/RequirementSpec.pm
+++ b/
SL/DB/RequirementSpec.pm
@@
-175,6
+175,11
@@
sub _copy_from {
%attributes);
}
+ # Copy custom variables.
+ foreach my $var (@{ $source->cvars_by_config }) {
+ $self->cvar_by_name($var->config->name)->value($var->value);
+ }
+
my %paste_template_result;
# Clone text blocks and pictures.
@@
-207,7
+212,7
@@
sub _copy_from {
$self->$accessor($paste_template_result{parts});
# Save new object -- we need its ID for the items.
- $self->save;
+ $self->save
(cascade => 1)
;
my %id_to_clone;