Support unicode characters in Applications or Packages's filter
1.Locate to these two pages: Horizon->Murano->Application Catalog->Applications Horizon->Murano->Manage->Package Definitions 2.Input the unicode characters in the Filter TextBox. 3.Click Filter Button. 4.Throw error informations. Change-Id: Ib65457adbbce3f904a2570c35a638318bde33c9d Closes-Bug: #1496267
This commit is contained in:
parent
732fe858b0
commit
f433cbce21
@ -313,7 +313,7 @@ def package_search(filters, context, limit=None, catalog=False):
|
||||
for delim in ',;':
|
||||
search_str = search_str.replace(delim, ' ')
|
||||
for key_word in search_str.split():
|
||||
_word = '%{value}%'.format(value=key_word)
|
||||
_word = u'%{value}%'.format(value=key_word)
|
||||
if attr in fk_fields.keys():
|
||||
condition = getattr(pkg, attr).any(
|
||||
getattr(models, fk_fields[attr]).name.like(_word))
|
||||
|
Loading…
x
Reference in New Issue
Block a user