mirror of
https://github.com/nextcloud/server.git
synced 2024-08-11 14:10:55 +02:00
VCategories: Don't forget to save category relations if category exists.
This commit is contained in:
parent
ef70978524
commit
c08a04bc83
@ -348,12 +348,11 @@ class OC_VCategories {
|
||||
self::$relations[] = array('objid' => $id, 'category' => $name);
|
||||
}
|
||||
}
|
||||
if(count($newones) > 0) {
|
||||
$this->categories = array_merge($this->categories, $newones);
|
||||
if($sync === true) {
|
||||
$this->save();
|
||||
}
|
||||
$this->categories = array_merge($this->categories, $newones);
|
||||
if($sync === true) {
|
||||
$this->save();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user