Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Feb 2012 at 10:51 UTC
Updated:
29 Jul 2012 at 07:41 UTC
Hi,
If there is a view with two displays, one has path "foo/bar" and the other has "foo/bar ", then it will cause the menu rebuild fail with a PDOException, and menu gets rebuild on every page load.
I attach the patch which cuts down the trailing spaces from menu paths.
| Comment | File | Size | Author |
|---|---|---|---|
| views_menu_rebuild.patch | 487 bytes | tamasd |
Comments
Comment #1
dagmarComment #2
dawehnerWhat about checking this on the validate function and removing the whitespace there,
but sure this doesn't matter that much.
Comment #3
tim.plunkettThis could be combined into:
$form_state['values']['path'] = trim($form_state['values']['path'], ' /');Comment #4
dawehnerFixed the comment from tim and just committed this to 7.x-3.x and 8.x-3.x
Afterwards this shouldn't be seen as major from my perspective.