prevent sync from clearing selected tags (#7631)

* prevent sync from clearing selected tags

* improved tag selection bugfix
This commit is contained in:
Shervin Sarain
2016-06-11 19:57:20 +02:00
committed by Matteo Pagliazzi
parent 0bf7858d53
commit 539547b39e
3 changed files with 5 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ schema.plugin(baseModel, {
private: ['auth.local.hashed_password', 'auth.local.salt', '_cronSignature'],
toJSONTransform: function userToJSON (plainObj, originalDoc) {
plainObj._tmp = originalDoc._tmp; // be sure to send down drop notifs
delete plainObj.filters;
return plainObj;
},