diff options
-rw-r--r-- | ishtar_common/views_item.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index b0ed98484..133e27d39 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -496,7 +496,10 @@ def _manage_dated_fields(dated_fields, dct): def _clean_type_val(val): for prefix in GeneralType.PREFIX_CODES: val = val.replace(prefix, u"") - return val.replace(u'"', u"").strip() + val = val.strip() + if val.startswith(u'"') and val.endswith(u'"'): + val = u'"{}"'.format(val[1:-1].strip()) + return val def _manage_facet_search(model, dct, and_reqs): |