# HG changeset patch # User Sylvain Thénault # Date 1316177021 -7200 # Node ID 814fb7f379a3de0b0aa119677053d891b57c1bdf # Parent 6f84279e0718c97ccf17476fb997033ff104037c [sources management] properly set __linkto, closes #1922970 when clicking on 'add mapping part' on an external source view, one expect to have source properly selected in form diff -r 6f84279e0718 -r 814fb7f379a3 web/views/cwsources.py --- a/web/views/cwsources.py Fri Sep 16 12:48:02 2011 +0200 +++ b/web/views/cwsources.py Fri Sep 16 14:43:41 2011 +0200 @@ -72,7 +72,8 @@ eschema = self._cw.vreg.schema.eschema('CWSourceSchemaConfig') if eschema.has_perm(self._cw, 'add'): self.w(u'%s' % ( - self._cw.build_url('add/%s' % eschema), + self._cw.build_url('add/%s' % eschema, + __linkto='cw_for_source:%s:subject' % entity.eid), self._cw._('add a CWSourceSchemaConfig'))) self.w(u'
') rset = self._cw.execute(