[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user