Removed force_i18n in API v2 settings serializer

refs #10582

- deprecated
- won't serve
- won't save
This commit is contained in:
kirrg001 2019-03-07 12:23:26 +01:00 committed by Katharina Irrgang
parent bfccaa8d2e
commit 20ab9651dc

View File

@ -48,5 +48,12 @@ module.exports = {
setting = url.forSetting(setting);
}
});
// CASE: deprecated, won't accept
const index = _.findIndex(frame.data.settings, {key: 'force_i18n'});
if (index !== -1) {
frame.data.settings.splice(index, 1);
}
}
};