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

nevron’s picture

Subscribing, same symptoms exactly with latest customfield module

nevron’s picture

Status: Active » Fixed

Dang, 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.

wernerglinka’s picture

Hey nevron, thanks for posting this. Yes indeed it was the 'Do not rewrite if empty' checkbox.

krisrobinson’s picture

Thanks #2...worked the treat.

bhag009’s picture

Thanks!!!

rsanan-1’s picture

I hope there is a fix soon. Else I need to update all views on all my sites !!

zanix’s picture

We 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?

merlinofchaos’s picture

customfield 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.

crea’s picture

Why is this setting enabled by default ? It's going to break lots of stuff.

goldlilys’s picture

Subscribing, just updated my site and the ones with customfield views disappeared. Please check this bug. Thanks.

dawehner’s picture

Just commited a fix which changes the default value for customfield.

joeebel’s picture

Subscribing - Just upgraded and all my customfields disappeared...

Status: Fixed » Closed (fixed)

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