[shared] xml_parser::XmlUnmarshaller: bugfix: in non-utf8 mode.

This commit is contained in:
Gaetan Delannay 2014-10-03 19:56:34 +02:00
parent 441dc0b423
commit 1455a74056
2 changed files with 11 additions and 6 deletions

View file

@ -183,7 +183,8 @@ class Ref(Field):
# This PX displays, in a cell header from a ref table, icons for sorting the
# ref field according to the field that corresponds to this column.
pxSortIcons = Px('''
<x if="changeOrder and ztool.isSortable(refField.name,tiedClassName,'ref')"
<x if="changeOrder and (len(objects) &gt; 1) and \
ztool.isSortable(refField.name, tiedClassName, 'ref')"
var2="ajaxBaseCall=navBaseCall.replace('**v**', '%s,%s,{%s:%s,%s:%s}'% \
(q(startNumber), q('sort'), q('sortKey'), q(refField.name), \
q('reverse'), q('**v**')))">