I just updated views to 6.x-2.16 from 6.x-2.14 and customfield: Markup stopped working. I have several fields that I hide and then build the html in a customfield with markup like so:
<div class="bannerTextWrap">
<h1>[title]<span>[field_by_line_value]</span></h1>
[body]
[field_banner_link_url]
[field_banner_secondary_link_url]
</div>That works as expected with views 6.x-2.14 but 2.16 doesn't show anything at all. Reverting back to 2.14 and all is well again.
Comments
Comment #1
nevron commentedSubscribing, same symptoms exactly with latest customfield module
Comment #2
nevron commentedDang, found the culprit, seems to be the newly introduced 'Do not rewrite if empty' checkbox option of the value fields. In order to have your customfields wokring again you need to uncheck the option as it is enabled by default in the customfield markup fields that you include in your views.
Comment #3
wernerglinka commentedHey nevron, thanks for posting this. Yes indeed it was the 'Do not rewrite if empty' checkbox.
Comment #4
krisrobinson commentedThanks #2...worked the treat.
Comment #5
bhag009 commentedThanks!!!
Comment #6
rsanan-1 commentedI hope there is a fix soon. Else I need to update all views on all my sites !!
Comment #7
zanixWe have the same issue with many of our views and is causing a lot of work to update.
This should be defaulted to off or shouldn't be applied to existing views.
Does anyone know of a way to bulk update all customfield fields to turn this off?
Comment #8
merlinofchaos commentedcustomfield should be updated to change its default to off; this setting has no meaning for custom field. It should be an easy patch to customfield.
Comment #9
crea commentedWhy is this setting enabled by default ? It's going to break lots of stuff.
Comment #10
goldlilys commentedSubscribing, just updated my site and the ones with customfield views disappeared. Please check this bug. Thanks.
Comment #11
dawehnerJust commited a fix which changes the default value for customfield.
Comment #12
joeebel commentedSubscribing - Just upgraded and all my customfields disappeared...