Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293522

Hide rewrite if empty is not working

$
0
0

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.


Viewing all articles
Browse latest Browse all 293522

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>