Last week I ran into an idiosyncratic use case where I had to display a megarow that had a 0 in its path callback. (For those curious, this was a custom page callback and the 0 was to point at the anonymous user entity and display something indicating that this user can't be added as a contact...)

Unfortunately, this didn't work out of the box because Views Megarow doesn't regard "0" as a valid path component. This is because in views_megarow_generic_render, the path arguments are array_filter()ed down, presumably to get rid of empty arguments and prevent URLs like foo//bar from appearing. Unfortunately this also invalidates 0 which -- I think -- is a valid path component.

Would it be possible to add 'strlen' as the callback for this array_filter call? It is on line 78 of views_megarow.module. This would remove empty strings but leave 0 as a valid path component.

Comments

Kazanir’s picture

Issue summary: View changes
Artusamak’s picture

Status: Active » Fixed

Good catch! It's committed and fixed (http://drupalcode.org/project/views_megarow.git/commit/a476be19da9b4574e...).

Thanks for reporting.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.