--- a/web/data/cubicweb.edition.js Fri Jul 24 17:50:31 2009 +0200
+++ b/web/data/cubicweb.edition.js Fri Jul 24 17:50:41 2009 +0200
@@ -477,7 +477,7 @@
d.addCallback(function (result, req) {
handleFormValidationResponse(divid+'-form', noop, noop, result);
if (reload) {
- document.location.href = result[1];
+ document.location.href = result[1].split('?')[0];
} else {
var fieldview = getNode('value-' + divid);
// XXX using innerHTML is very fragile and won't work if
--- a/web/views/__init__.py Fri Jul 24 17:50:31 2009 +0200
+++ b/web/views/__init__.py Fri Jul 24 17:50:41 2009 +0200
@@ -81,7 +81,7 @@
if req.search_state[0] == 'normal':
return 'primary'
return 'outofcontext-search'
- if len(rset.columns_type(0)) == 1:
+ if len(rset.column_types(0)) == 1:
return 'adaptedlist'
return 'list'
return 'table'