Closed nmalservet closed 8 years ago
Pb with filter inactif: if "inactif" selected 2, if "actif" selected 2 users.
By investigate in db :
db.user.find({"inactif":"0"}).count(); 31 db.user.find({"inactif":0}).count(); 7 db.user.find({"inactif":"1"}).count(); 2 db.user.find({"inactif":1}).count(); 42
Sometimes the field is stored as NumberLong, sometimes as String.
Objective : use NumberLong ( type by default on mongo number) And change search according to this type
Pb with filter inactif: if "inactif" selected 2, if "actif" selected 2 users.
By investigate in db :
Sometimes the field is stored as NumberLong, sometimes as String.