feat: add filter:categories.copySettingsFrom

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 084c985117
commit d8e4fd4cdd

@ -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);

Loading…
Cancel
Save