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:
6f70e84
)
SL::DB::Object: warnings
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 6 Apr 2016 16:22:42 +0000
(18:22 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 6 Apr 2016 16:22:42 +0000
(18:22 +0200)
SL/DB/Object.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Object.pm
b/SL/DB/Object.pm
index
4ecaab2
..
fa47464
100755
(executable)
--- a/
SL/DB/Object.pm
+++ b/
SL/DB/Object.pm
@@
-232,7
+232,7
@@
sub clone_and_reset {
my @mutators = $meta->column_mutator_method_names;
my @column_names =
grep { $_->[0] && $_->[1] && !$_skip_fields_when_cloning{ $_->[0] } }
- pairwise { [ $a, $b] } @accessors, @mutators;
+ pairwise {
no warnings qw(once);
[ $a, $b] } @accessors, @mutators;
my $clone = $class->new(map { my $method = $_->[0]; ($_->[1] => $self->$method) } @column_names);