merge stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 07 Sep 2009 20:23:40 +0200
branchstable
changeset 3108 aa43c0c22b98
parent 3105 b788903e77d5 (current diff)
parent 3107 0829808e93c1 (diff)
child 3109 e7e1bb06b716
merge
--- a/web/data/cubicweb.facets.js	Fri Sep 04 16:13:04 2009 +0200
+++ b/web/data/cubicweb.facets.js	Mon Sep 07 20:23:40 2009 +0200
@@ -130,9 +130,10 @@
 		});
 		facet.find('div.facetCheckBox').click(function () {
 		    var $this = jQuery(this);
-		    if ($this.hasClass('facetValueDisabled')){
-		     	    return
-		    }
+		    // NOTE : add test on the facet operator (i.e. OR, AND)
+		    // if ($this.hasClass('facetValueDisabled')){
+		    //  	    return
+		    // }
 		    if ($this.hasClass('facetValueSelected')) {
 			$this.removeClass('facetValueSelected');
 			$this.find('img').each(function (i){
--- a/web/formwidgets.py	Fri Sep 04 16:13:04 2009 +0200
+++ b/web/formwidgets.py	Mon Sep 07 20:23:40 2009 +0200
@@ -430,8 +430,9 @@
         # XXX entity form specific
         entity = form.edited_entity
         attrs['cubicweb:etype_to'] = entity.e_schema
-        etype_from = entity.e_schema.subject_relation(self.name).objects(entity.e_schema)[0]
+        etype_from = entity.e_schema.subject_relation(field.name).objects(entity.e_schema)[0]
         attrs['cubicweb:etype_from'] = etype_from
+        return name, values, attrs
 
     def render(self, form, field, renderer):
         return super(AddComboBoxWidget, self).render(form, field, renderer) + u'''