feat: add filter:categories.copySettingsFrom

This commit is contained in:
Barış Soner Uşaklı
2021-04-30 10:06:19 -04:00
parent b265e6f68b
commit 3da8b93578

View File

@@ -150,6 +150,11 @@ module.exports = function (Categories) {
if (copyParent) {
destination.parentCid = source.parentCid || 0;
}
await plugins.hooks.fire('filter:categories.copySettingsFrom', {
source: source,
destination: destination,
copyParent: copyParent,
});
await db.setObject('category:' + toCid, destination);