[Rt-commit] rt branch, 4.2/dump-metadata-cleanups, updated. rt-4.0.18-32-g9e3fd22

Alex Vandiver alexmv at bestpractical.com
Thu Oct 31 18:18:51 EDT 2013


The branch, 4.2/dump-metadata-cleanups has been updated
       via  9e3fd223173f3994fac3da62fefb985e613d7d61 (commit)
      from  94f99e840766e929be7cb231c0c54e23b2647919 (commit)

Summary of changes:
 sbin/rt-dump-metadata.in | 3 +++
 1 file changed, 3 insertions(+)

- Log -----------------------------------------------------------------
commit 9e3fd223173f3994fac3da62fefb985e613d7d61
Author: Kai Storbeck <kai at xs4all.nl>
Date:   Wed Oct 16 10:40:43 2013 +0200

    Do not dump references to tickets
    
    Bookmarks shouldn't be dumped.

diff --git a/sbin/rt-dump-metadata.in b/sbin/rt-dump-metadata.in
index 4c555ae..798e0e4 100644
--- a/sbin/rt-dump-metadata.in
+++ b/sbin/rt-dump-metadata.in
@@ -285,6 +285,9 @@ OBJECT:
             my $attributes = $obj->Attributes;
             while ( my $attribute = $attributes->Next ) {
                 my $content = $attribute->Content;
+                if ( $class eq 'Users' and $attribute->Name eq 'Bookmarks' ) {
+                    next;
+                }
                 $rv->{Attributes}{ $attribute->Name } = $content
                     if length($content);
             }

-----------------------------------------------------------------------


More information about the Rt-commit mailing list