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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greatbob6’s picture

davisben’s picture

Status: Active » Fixed

Committed. Thanks for the patch!

  • davisben committed f176e25 on 7.x-2.x authored by greatbob6
    Issue #2226683 by greatbob6: Views form value incorrect with non-zero...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.