diff --git a/src/common.js b/src/common.js index d23157f0e8..fcf0fa679d 100644 --- a/src/common.js +++ b/src/common.js @@ -648,7 +648,7 @@ } var formatted_value = this.format_value(field, value, target); if (~this.OPERATORS.indexOf(operator) && - ~['char', 'text', 'sha', 'selection'] + ~['char', 'text', 'selection'] .indexOf(field.type) && (value === '')) { formatted_value = '""'; diff --git a/src/view.js b/src/view.js index 198b787b82..8f35e58ab5 100644 --- a/src/view.js +++ b/src/view.js @@ -1426,8 +1426,8 @@ switch (type) { case 'char': return Sao.View.Form.Char; - case 'sha': - return Sao.View.Form.Sha; + case 'password': + return Sao.View.Form.Password; case 'date': return Sao.View.Form.Date; case 'datetime': @@ -1580,10 +1580,10 @@ } }); - Sao.View.Form.Sha = Sao.class_(Sao.View.Form.Char, { - class_: 'form-sha', + Sao.View.Form.Password = Sao.class_(Sao.View.Form.Char, { + class_: 'form-password', init: function(field_name, model, attributes) { - Sao.View.Form.Sha._super.init.call(this, field_name, model, + Sao.View.Form.Password._super.init.call(this, field_name, model, attributes); this.el.prop('type', 'password'); }