summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2012-09-25 11:12:36 +0200
committerChristophe Matthieu <chm@openerp.com>2012-09-25 11:12:36 +0200
commitbf3cb4bcd6de46ec86b9bb335008a3722e817276 (patch)
treed246fcb5b74500e10442f2288ee6aad845bf6132 /addons/mail/static/src
parent4525190e726a3f9fadeade2fba40c41a69a4bb72 (diff)
[FIX] mail: rpc with not false value
bzr revid: chm@openerp.com-20120925091236-l9ywccbyjsoa31ph
Diffstat (limited to 'addons/mail/static/src')
-rw-r--r--addons/mail/static/src/js/mail_followers.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/mail_followers.js b/addons/mail/static/src/js/mail_followers.js
index 4ceb936c623..5836bd94ba1 100644
--- a/addons/mail/static/src/js/mail_followers.js
+++ b/addons/mail/static/src/js/mail_followers.js
@@ -104,7 +104,8 @@ openerp_mail_followers = function(session, mail) {
fetch_followers: function (value_) {
this.value = value_ || {};
this.message_is_follower = (this.getParent().fields.message_is_follower && this.getParent().fields.message_is_follower.get_value());
- return this.ds_follow.call('read', [value_, ['name', 'user_ids']]).pipe(this.proxy('display_followers'), this.proxy('display_generic'));
+ if(value_)
+ return this.ds_follow.call('read', [this.value, ['name', 'user_ids']]).pipe(this.proxy('display_followers'), this.proxy('display_generic'));
},
/* Display generic info about follower, for people not having access to res_partner */