[FIX] website: port of rev a98d60cb11

The forward-port of the above revision missed
the conversion to the new api and that
`context` had to be replaced by `self.env.context`

Fixes #14922
Closes #14923
This commit is contained in:
Denis Ledoux
2017-01-11 11:03:49 +01:00
parent 5a1ec14519
commit b228f548ca
+1 -1
View File
@@ -526,7 +526,7 @@ class Website(models.Model):
of the same.
:rtype: list({name: str, url: str})
"""
request.context = dict(request.context, **context)
request.context = dict(request.context, **self.env.context)
router = request.httprequest.app.get_db_router(request.db)
# Force enumeration to be performed as public user
url_set = set()