pass list of category objects to addDocument instead of cat ids

This commit is contained in:
Uwe Steinmann 2018-02-20 06:35:16 +01:00
parent 6c2a011a9a
commit 6bef6824c2

View File

@ -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";
}