[FIX] on completion error, tell user there are no results
not sure whether and how an error could/should be reported to the user. For now, it's automatically logged into the console. bzr revid: xmo@openerp.com-20131125101819-u2akhr16bd5kcsmf
This commit is contained in:
@@ -912,6 +912,8 @@
|
||||
more: false,
|
||||
results: rs
|
||||
});
|
||||
}, function () {
|
||||
q.callback({more: false, results: []});
|
||||
});
|
||||
},
|
||||
});
|
||||
@@ -995,8 +997,8 @@
|
||||
limit: 9,
|
||||
context: website.get_context()
|
||||
},
|
||||
}).done(function () {
|
||||
// request completed successfully -> unstore it
|
||||
}).always(function () {
|
||||
// request completed -> unstore it
|
||||
self.req = null;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user