Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A data comparison checking whether a boolean is FALSE.
Comment | File | Size | Author |
---|---|---|---|
#1 | rules_boolean.patch | 768 bytes | fago |
Comments
Comment #1
fagoIt looks the problem is that we do a type-safe check then and check 0 vs. FALSE. The attached patch fixes that to never do a type-safe check but to just differentiate between NULL and FALSE values.
Patch attached and committed.
Comment #3
ShaneOnABike CreditAttribution: ShaneOnABike commentedSorry did this patch actually get deployed into Rules b/c I am having the same issue here: #1919096: Apply provincial taxes not working
Essentially the Rule to compare a boolean (checkbox) with the checked value fails each time...
Comment #4
ShaneOnABike CreditAttribution: ShaneOnABike commentedActually I can see that this was applied sorry for not checking beforehand but it's interesting b/c I see that the rule still fails... I haven't been able to diagnose why but will try and report back.
Comment #5
ShaneOnABike CreditAttribution: ShaneOnABike commentedHrmmm never mind I got the latest code and it seems to be working properly now. Thanks!
Comment #7
TR CreditAttribution: TR commentedThis was fixed in #1. It was mistakenly re-opened in #3 and never closed again when the mistake was discovered.
Closing ...
Comment #8
TR CreditAttribution: TR commented