mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
pass list of category objects to addDocument instead of cat ids
This commit is contained in:
parent
6c2a011a9a
commit
6bef6824c2
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user