From d8e4fd4cddf6d4124a96d63a59ad84a08a25acea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 30 Apr 2021 10:06:19 -0400 Subject: [PATCH] feat: add filter:categories.copySettingsFrom --- src/categories/create.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/categories/create.js b/src/categories/create.js index 93121dc8b9..b5068ff0dc 100644 --- a/src/categories/create.js +++ b/src/categories/create.js @@ -170,6 +170,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);