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.
If the default weight value for a content type is non-zero but the value for a node is zero then the views form field will show the default value instead of the actual value of zero.
This is due to the PHP "empty" function being used to see if there is a weight associated with the row, which considers a value of "0" to be empty.
Comment | File | Size | Author |
---|---|---|---|
#1 | weight-views_form_default_fix-2226683.patch | 1.37 KB | greatbob6 |
Comments
Comment #1
greatbob6 CreditAttribution: greatbob6 commentedComment #2
davisbenCommitted. Thanks for the patch!