Hide rewrite if empty is not working

Created on 28 January 2016, about 9 years ago
Updated 8 March 2023, about 2 years ago

Steps to reproduce

  1. Set up a content type with two optional text fields (text1 and text2).
  2. Make content with content in only text1.
  3. Configure view:
    • Show fields
    • Add text1 and text2 fields
    • Configure text1 and text2 fields to "Create a label"
    • Configure text2 field "Rewrite results" to "Override the output of this field with custom text". Add text1 field's replacement pattern.
    • Configure text 2 field's "No results behavior". Disable "Hide rewriting if empty".

Expected output

View with content of text1 field output next to label for text2.

Actual output

The view will not show the content of text1 in the text2 field even though it has been rewritten to do so.

Remaining tasks

I have created a patch for this, however, the patch does not add a test that catches this problem.

Also, see related issue for more details.

πŸ› Bug report
Status

Needs work

Version

10.1 ✨

Component
ViewsΒ  β†’

Last updated about 18 hours ago

Created by

πŸ‡©πŸ‡°Denmark RunePhilosof

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024