From 26f854b43f74a943592fbe759190cb87697c9276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 12 May 2015 14:56:04 +0200 Subject: [PATCH] backoffice: fix redirect when there's a single menu item (#7216) --- extra/modules/backoffice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/modules/backoffice.py b/extra/modules/backoffice.py index 2ac04da..c018e46 100644 --- a/extra/modules/backoffice.py +++ b/extra/modules/backoffice.py @@ -20,7 +20,7 @@ class BackofficeRootDirectory(wcs.backoffice.root.RootDirectory): def _q_index(self): if len(self.get_menu_items()) == 1: - return redirect(self.get_menu_items()[0][0]) + return redirect(self.get_menu_items()[0]['url']) return wcs.backoffice.root.RootDirectory._q_index(self) def home(self): -- 2.1.4