Closed (fixed)
Project:
Typed Entity
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Sep 2020 at 18:13 UTC
Updated:
26 Nov 2020 at 21:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hawkeye.twolfComment #3
hawkeye.twolfRemove copy/paste comment.
Comment #4
hawkeye.twolfComment #5
hawkeye.twolfComment #6
e0ipsoThanks for the patch! I will merge this onto 3.x.
However, I think that it would be fair to also have special handling for the case when the
FieldValueVariantConditionreceives aNULLto check if it's empty. This is in line with the principle of least astonishment, given that this is what you tried first and didn't work.After the patch there should be 2 ways of using a variant when a field is empty, using the new condition, or passing
NULLtoFieldValueVariantCondition.Does that sound fair?
Comment #7
e0ipsoPatch updated implementing the suggestion in #6.
Comment #9
e0ipsoComment #10
e0ipsoThanks for this!