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 a field weight is 0 it is coverting to an empty string, and it will be allways the first element.
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedTurns out the problem was actually in content.crud.inc which was checking if (empty()) and then setting the weight to NULL. I missed this altogether, nice catch!
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.