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.
In rare cases such as #297027: Custom Javascript: Cannot remove items from nodequeue, invalid data can be saved to the nodequeue_nodes table, which causes problems and takes time to figure out through the issue queue. We should prevent these bad values from ever getting saved.
Comments
Comment #1
ezra-g CreditAttribution: ezra-g commentedThe solution I'd like to see here would be abstracted away from the specific form (or custom code :D) being used to submit the new queue order. I'd like to have either a single function that validates and then either returns false or replaces all values for a subqueue with those from an array keyed on the queue position with nid as values.
Comment #2
ezra-g CreditAttribution: ezra-g commentedComment #3
ezra-g CreditAttribution: ezra-g commentedThis is being merged into #337834: Prevent bad data from being saved to nodequeue_nodes.
Comment #4
ezra-g CreditAttribution: ezra-g commentedD'oh. #234004: Drag and drop node ordering