I have a view that worked in Views 2.2 but is always empty with Views 2.3. I reverted to Views 2.2 to verify this.

The view has two added displays: page and attachment. The attachment's position is before the page. It inherits arguments. The displays inherit everything but the fields from the default display.

The argument is Taxonomy: Term ID which uses PHP to validate the argument. The argument is changed by the validator according to the help text underneath the PHP validate code field.

The interesting feature of this bug is that the view returns the correct result when I use Views UI to preview it with a valid argument. But when the view appears attached to the page, the result is always empty.

I've attached the view here, but it's so specific to my site that I don't know if you can easily reproduce the bug using this view.

CommentFileSizeAuthor
attachment-display-php-validation-view.txt5.39 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nelslynn’s picture

I'm having same issue. Is this a bug??

I have a view set up to show nodes of a particular content type. Within this content type, I send a taxonomy ID as an argument to show a particular set of nodes. Each node contains an image, a thumbnail, and two text fields. I want the thumbnails to show in the left sidebar so I have separated the thumbnail images into an Attachment display. The rest of the node fields are hidden in a custom JavaScript row, so when I click a Thumbnail, the large image shows (irrelevant to this issue). Anyway, I want the thumbnail images to accept the same argument at the page display. This is not working with my Drupal version 6.9 and Views version 2.3. I have tried every possible combination. It works when I preview with page, but not in page view. I can get ALL the thumbnail records to show when I put the attachment setting, Inherit arguments: Yes (I would think the proper setting would be: No). The page argument works, but not the attachment is not receiving the page's argument.

Anonymous’s picture

Test your view in Views 2.2. For me, the problem appeared in Views 2.3 and the same view works fine in Views 2.2.

nelslynn’s picture

Works like a charm in Views 2.2. What a great feature for Views.

I guess I'll just create a work-around until this gets fixed.

Thanks,

Edit: I just notice the attachment function works with Version 2.2, BUT you can only use Items Per Page: Unlimited. If you add paging, the paging functionality will work on the Page, but not on the Attachment. Your attachment data stays static. Or, am I missing something??

intelligentdesigner’s picture

I've had exactly the same issue - felt like I was banging my head against a brick wall!

I have a Page display which takes a taxonomy term as an argument and displays a list of nodes of a specific type. All good so far. I then create an attachment display which inherits the same argument and displays list of nodes of a different type. Previewing the attachment is all good also.

Adding the attachment display to the page display results in any empty attachment. Hurm.

Like everyone else, this issue is sorted when I revert to 2.2. Ho hum.

Anyhoo, thanks for a fabulous module Merlin.

merlinofchaos’s picture

Status: Active » Fixed

Found the problem causing this, fixed in CVS.

intelligentdesigner’s picture

That's fast work Merlin, nice one.

Status: Fixed » Closed (fixed)

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

ceejayoz’s picture

thePanz’s picture

You saved my life! :)
Waiting for the new release fixing this HUGE bug! :)