blooparksystems / website

Odoo Website builder related addons
GNU Affero General Public License v3.0
10 stars 33 forks source link

[FIX] Fixed wrong url parts usage when updating website menu urls whi… #64

Closed rruebner closed 8 years ago

rruebner commented 8 years ago

…ch could lead to non updatable website menu urls.

The problem with splitting a string like /seo_url by split('/') will end in a list with two elements ['', 'seo_url']. That causes the problem that the condition in website_seo/models/ir_ui_view.py (line 155) always fails, the length of the result views is 1 but the length of the url parts is 2.