From 6c7420654442332eb5f194566dbe18f7d30e03a2 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 6 Aug 2015 06:25:06 +0200 Subject: [PATCH] add transmittals to $objmap --- utils/xmlimport.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/xmlimport.php b/utils/xmlimport.php index c7c079e0b..83815839f 100644 --- a/utils/xmlimport.php +++ b/utils/xmlimport.php @@ -16,7 +16,7 @@ function usage() { /* {{{ */ echo " --file : file containing the dump.\n"; echo " --sections : comma seperated list of sections to read from dump.\n"; echo " can be: users, groups, documents, folders, keywordcategories, or\n"; - echo " documentcategories\n"; + echo " documentcategories, transmittals\n"; echo " --contentdir : directory where all document versions are stored\n"; echo " which are not included in the xml file.\n"; echo " --default-user : use this user if user could not be found.\n"; @@ -680,7 +680,7 @@ function insert_transmittal($transmittal) { /* {{{ */ } if($newTransmittal) - $objmap['transmittals'][$documentcat['id']] = $newTransmittal->getID(); + $objmap['transmittals'][$transmittal['id']] = $newTransmittal->getID(); return $newCategory; } /* }}} */ @@ -1310,6 +1310,7 @@ $objmap = array( 'groups' => array(), 'folders' => array(), 'documents' => array(), + 'transmittals' => array(), ); $xml_parser = xml_parser_create("UTF-8");