cubicweb #1683703 rset.get_entity crash on rql query with subquery and aggregat [resolved]

with: Any A,B,C,COUNT(D) GROUPBY A,B,C WITH A,B,C,D BEING (Any YEAR(CD), MONTH(CD), S, X WHERE X is Patch, X creation_date CD, X in_state S) we get

File /usr/lib/python2.6/dist-packages/cubicweb/, line 682, function attr_desc_iterator
  term = select.selection[root.subquery_selection_index(select, i)]
File /usr/lib/pymodules/python2.6/rql/, line 337, function subquery_selection_index
  col = select.selection[col].variable.colnum

 Error: Function object has no attribute variable
done in3.12.5
load left0.000
closed by<not specified>