Enonic version: 7.0.2
OS: Linux Mint 19.1
I created a content type with two fields to test this. This is an example:
<content-type>
<display-name>My Content</display-name>
<display-name-expression>${tittel}</display-name-expression>
<super-type>base:structured</super-type>
<form>
<input type="TextLine" name="tittel">
<label>Tittel</label>
<occurrences minimum="1" maximum="1"/>
</input>
<input type="CustomSelector" name="customField">
<label>Custom Field</label>
<occurrences minimum="0" maximum="0"/>
<config>
<service>myService</service>
</config>
</input>
</form>
</content-type>
When I don’t set the value of my custom selector, the tag don’t set the display name. When I set the value, the tag works correctly.
I’m doing something wrong, or this is a bug?