mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Fix removal of the filter keyword for field type comparison
This commit is contained in:
parent
422530ceed
commit
c785248b2c
@ -463,7 +463,10 @@ module.exports = {
|
||||
if (modelAttributes[key]) {
|
||||
fieldType = modelAttributes[key]['type'];
|
||||
} else {
|
||||
let splitKey = key.split('_').pop();
|
||||
// Remove the filter keyword at the end
|
||||
let splitKey = key.split('_').slice(0,-1);
|
||||
splitKey = splitKey.join('_');
|
||||
|
||||
if (modelAttributes[splitKey]) {
|
||||
fieldType = modelAttributes[splitKey]['type'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user