web/views/editcontroller.py
branchstable
changeset 7182 09454384fff8
parent 6864 ea95004494a2
child 7584 e1881933f366
equal deleted inserted replaced
7181:e54ad6984e01 7182:09454384fff8
   180         # create a rql query from parameters
   180         # create a rql query from parameters
   181         rqlquery = RqlQuery()
   181         rqlquery = RqlQuery()
   182         # process inlined relations at the same time as attributes
   182         # process inlined relations at the same time as attributes
   183         # this will generate less rql queries and might be useful in
   183         # this will generate less rql queries and might be useful in
   184         # a few dark corners
   184         # a few dark corners
   185         formid = self._cw.form.get('__form_id', 'edition')
   185         if is_main_entity:
       
   186             formid = self._cw.form.get('__form_id', 'edition')
       
   187         else:
       
   188             # XXX inlined forms formid should be saved in a different formparams entry
       
   189             # inbetween, use cubicweb standard formid for inlined forms
       
   190             formid = 'edition'
   186         form = self._cw.vreg['forms'].select(formid, self._cw, entity=entity)
   191         form = self._cw.vreg['forms'].select(formid, self._cw, entity=entity)
   187         eid = form.actual_eid(entity.eid)
   192         eid = form.actual_eid(entity.eid)
   188         form.formvalues = {} # init fields value cache
   193         form.formvalues = {} # init fields value cache
   189         try:
   194         try:
   190             editedfields = formparams['_cw_edited_fields']
   195             editedfields = formparams['_cw_edited_fields']