[table sort] should eval cubicweb:sortvalue to make it works properly
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 03 Nov 2011 11:18:35 +0100
changeset 8045 c81d6f57ae9a
parent 8043 c699f6edd067
child 8046 bdd555df7a91
[table sort] should eval cubicweb:sortvalue to make it works properly
web/data/cubicweb.js
--- a/web/data/cubicweb.js	Wed Nov 02 10:37:04 2011 +0100
+++ b/web/data/cubicweb.js	Thu Nov 03 11:18:35 2011 +0100
@@ -88,7 +88,7 @@
 	if (sortvalue === undefined) {
 	    return '';
 	}
-	return sortvalue;
+	return cw.evalJSON(sortvalue);
 }
 });