Commit d266bdd9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Convert a search pattern to unicode because the user can input utf-8.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1440 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57f166c3
......@@ -1156,11 +1156,15 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
for cname in extended_columns:
if cname[0] in search_columns_id_list:
list_search = list_search + (
"<td class=\"DataB\"><font size=\"-3\"> \
<input name=\"%s\" size= \"8\" value=\"%s\" > \
</font></td>\n" % \
(str(cname[2]) , params.get(str(cname[2]),'')))
alias = str(cname[2])
param = params.get(alias,'')
if type(param) == type(''):
param = unicode(param, 'utf-8')
list_search += """\
<td class="DataB">
<font size="-3"><input name="%s" size="8" value="%s"></font>
</td>
""" % (alias, param)
else:
list_search = list_search + (
"<td class=\"DataB\"></td> ")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment