[FIX] correctly check default/shared filters

in searchview.  They were swapped in the UI, and not in the code.  It
also shows that using position as reference is fragile.
This commit is contained in:
Géry Debongnie
2014-10-21 09:33:52 +02:00
parent d82ca918cd
commit d87f760a2c
+2 -2
View File
@@ -1625,8 +1625,8 @@ instance.web.search.FavoriteMenu = instance.web.Widget.extend({
save_favorite: function () {
var self = this,
filter_name = this.$inputs[0].value,
shared_filter = this.$inputs[1].checked,
default_filter = this.$inputs[2].checked;
default_filter = this.$inputs[1].checked,
shared_filter = this.$inputs[2].checked;
if (!filter_name.length){
this.do_warn(_t("Error"), _t("Filter name is required."));
this.$inputs.first().focus();