use backgroundImage if its passed in

v1.18.x
Barış Soner Uşaklı 8 years ago
parent 79a48cec5f
commit 02dee48329

@ -43,6 +43,10 @@ module.exports = function (Categories) {
imageClass: 'cover', imageClass: 'cover',
}; };
if (data.backgroundImage) {
category.backgroundImage = data.backgroundImage;
}
plugins.fireHook('filter:category.create', { category: category, data: data }, next); plugins.fireHook('filter:category.create', { category: category, data: data }, next);
}, },
function (data, next) { function (data, next) {

Loading…
Cancel
Save