Closed (fixed)
Project:
Panels
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Reporter:
Created:
2 Jan 2008 at 12:05 UTC
Updated:
22 Jan 2008 at 18:12 UTC
Jump to comment: Most recent file
Title says it all.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | panels_views_coding_style.patch | 8.48 KB | wim leers |
| #3 | panels_views_coding_style.patch | 10.24 KB | wim leers |
| #1 | panels_views.patch | 10.32 KB | wim leers |
| panels_views_coding_style.patch | 7 KB | wim leers |
Comments
Comment #1
wim leersThere were 2 bugs in
panels_views_render():1) the default wildcard argument that was being passed, "*", is invalid. At least it causes Views to render nothing at all. If I change the default wildcard to "", it works just fine.
2) the view type that is being passed to
views_build_view()is not the "calculated" one. I.e.:$view_type = $pv->view_type == 'embed' ? 'page' : $pv->view_type;is above the function call to build the view. But in that function call, you don't use it. This caused an empty string to be passed instead, which also caused Views to render nothing at all.
Also more coding style and comment fixes.
Comment #2
wim leersI messed up the title.
Comment #3
wim leersBugfixes should be separate from cleanups. My analysis of both bugs is extremely bad (mostly because I just fiddled with the code until it worked), so please ignore them :) I will post it in a separate issue.
Back to the origins: just coding style and comments cleanup.
Comment #4
merlinofchaos commentedSorry Wim; I actually purposefully avoid one Drupal coding style axiom, and that's that . should not have a space between it and a string. I strongly disagree with that one. Looks like about half of this patch is for that.
Comment #5
wim leersAha. I wonder why you didn't tell me that when I wrote Mini panels then?
Anyway, will reroll. My patch for the style plugins will probably need updating then as well.
Comment #6
merlinofchaos commentedI thought I did, actually. I don't think about it a lot. Sorry!
Comment #7
wim leersReroll.
There is one actual code change still in this patch:
$pv->type VS $pv->view_type
The 'type' property is missing, 'view_type' is not, and you're passing a view type, so I bet that's what you meant.
Comment #8
merlinofchaos commentedOh! That'll fix another issue!
Comment #9
catchYep this one. Tested, works.
http://drupal.org/node/205620#comment-679833
So bumping to critical.
Comment #10
merlinofchaos commentedCommitted! Thanks!!
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.