From 6bef6824c232a871ca79602937910bbceeebc05f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 20 Feb 2018 06:35:16 +0100 Subject: [PATCH] pass list of category objects to addDocument instead of cat ids --- utils/adddoc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/adddoc.php b/utils/adddoc.php index 5453dd099..80c92386a 100644 --- a/utils/adddoc.php +++ b/utils/adddoc.php @@ -137,7 +137,7 @@ if(isset($options['K'])) { foreach($categorynames as $categoryname) { $cat = $dms->getDocumentCategoryByName($categoryname); if($cat) { - $categories[] = $cat->getID(); + $categories[] = $cat; } else { echo "Category '".$categoryname."' not found\n"; }