changeset 10047 | a1fde2d343b6 |
parent 9770 | 112c884b2d8d |
child 10222 | 75d6096216d7 |
--- a/web/views/urlpublishing.py Mon Nov 24 14:43:28 2014 +0100 +++ b/web/views/urlpublishing.py Mon Nov 24 17:43:29 2014 +0100 @@ -209,7 +209,10 @@ if rset.rowcount == 1: req.form.setdefault('vid', 'primary') else: # rset.rowcount >= 1 - req.form.setdefault('vid', 'sameetypelist') + if len(rset.column_types(0)) > 1: + req.form.setdefault('vid', 'list') + else: + req.form.setdefault('vid', 'sameetypelist') def handle_etype(self, req, cls): rset = req.execute(cls.fetch_rql(req.user))