Skip to content

Commit

Permalink
Item14152: Merge commit 'f4d4dbc42bf561daee53851446c58df9295646f8' in…
Browse files Browse the repository at this point in the history
…to Item14152

* commit 'f4d4dbc42bf561daee53851446c58df9295646f8':
  Item13897: Object cloning and __attribute relations changed.
  • Loading branch information
vrurg committed Sep 12, 2016
2 parents 56cf018 + f4d4dbc commit 65af9d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/lib/Foswiki/Object.pm
Expand Up @@ -289,6 +289,8 @@ sub clone {
my $destAttr = $attr;
if ( $destAttr =~ /^__/ ) {

next unless $destAttr =~ /^__orig_/;

# Debug attributes would be preserved but those coming from the
# source object would be kinda pushed on a stack by adding extra __
# prefix. This way we could trace object's history.
Expand Down

0 comments on commit 65af9d9

Please sign in to comment.