Merge pull request #2078 from owncloud/save_category_relations

VCategories: Don't forget to save category relations if category exists.
remotes/origin/stable5
Thomas Müller 12 years ago
commit 5c061561c5
  1. 9
      lib/vcategories.php

@ -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…
Cancel
Save