Closed (fixed)
Project:
Title
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2013 at 14:21 UTC
Updated:
13 Jun 2014 at 23:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
StoraH commentedHere is a patch that checks if the output is empty.
Comment #2
StoraH commentedComment #4
plachDid you try the latest dev? This sounds like a duplicate of #1919640: Empty tag shown when the title field is displayed.
Comment #5
StoraH commentedI did't try the latest dev version but that patch is in 7.x-1.0-alpha7 as well which I use.
To me they don't look related. The issue you linked to is for handel empty tags this is to handle empty output/title.
Comment #6
plachPlease, try the latest dev anyway.
Comment #7
StoraH commentedOk, now I have tried the latest dev.. Still same problem.. It still prints wrapper tags even if there is no title.
And it should because it never checks if the title has a value. Once again this is not a problem with entities that have a mandatory title field, like nodes, but for Fieldable panels panes it is.
Comment #8
plachOk, could you please provide a patch that can be applied to the dev branch? Thanks :)
Comment #9
StoraH commentedAbsolut :) I'll do it tomorrow.
Comment #10
StoraH commented#2: dont-print-empty-wrapper-tags-1980520-2.patch queued for re-testing.
Comment #11
pbz1912 commentedThe field was still being output in the render array in the other patch when the field was empty, this one should fix it. May need re-rolling.
Comment #13
pbz1912 commentedRe-rolled against dev.
Comment #14
vincenzo commented+1
Comment #15
plachCommitted and pushed, thanks.