Custom Template - Null value

Created on 28 March 2024, 9 months ago
Updated 4 April 2024, 9 months ago

Problem/Motivation

When you create a view with custom field and display "Custom template"
it works fine when there is value like:

Name : Coaston
Tel : +4112xxx

However when some field is not populated it does not display n/a or null :

Name : Coaston
Tel : [tel_number]

Steps to reproduce

Add ability to display n/a or display blank if there is not any value populated for field so the resoult should be :

Name : Coaston
Tel : 

OR

Name : Coaston
Tel : n/a

instead of Tel : [tel_number]

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

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

Comments & Activities

  • Issue created by @coaston
  • πŸ‡ΈπŸ‡°Slovakia coaston
  • πŸ‡ΈπŸ‡°Slovakia coaston
  • Status changed to Fixed 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States apmsooner

    Fixed in 3.x dev.

  • πŸ‡ΈπŸ‡°Slovakia coaston

    Thank you!

    However for some my prod sites i cannot currently move to drupal 10.2 hence is it possible to fix it for version 2, or at least provide some guide what needs to be updated and where so I can update it manually in my case?

  • πŸ‡ΊπŸ‡ΈUnited States apmsooner

    I've backported this also to 2.x dev. I'm confused as you have submitted several issues with some tagged to 3.x and some to 2.x. Is everything you submitted a 2.x issue? Please tag according to the version you're using so I can help you.

  • πŸ‡ΈπŸ‡°Slovakia coaston

    I do have developmnent site with 2.0.1 to reflect my prod enviroment. Hovever with wamp server i used clean version of drupal 10.2.4 so I am also testing version 3.0.0-beta2 and I have updated version in #3.

    Will try to download dev version as you suggested and will get back to you, but there is bank holiday due to Easter so will continue next week with testing.

    Thank you so much! This issue was mandatory for me, so if it is really fixed it would be a big step for my project.

  • πŸ‡ΈπŸ‡°Slovakia coaston

    I can confirm for both - it works as expected. Can be closed or maybe you can back-port also to version 2.0.1 aslo. But 2dev works for me.

  • Status changed to Fixed 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States apmsooner
Production build 0.71.5 2024