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.
When you try to create second time or later userqueue, you're getting wrong position for first element. Also because of this you're getting wrong position for draggable form and then error about weight duplication.
Error occurs because of wrong SQL query:
$query = db_select('userqueue_user', 'uu');
$query->addExpression('MAX(position)', 'position');
$position = $query->execute()->fetchField();
that misses condition.
Comment | File | Size | Author |
---|---|---|---|
#2 | userqueue-wrong-calculation-of-position-2075359-1.patch | 574 bytes | gaurav.kapoor |
#1 | userqueue-wrong-calculation-of-submission-2075359-1.patch | 574 bytes | m1r1k |
Comments
Comment #1
m1r1k CreditAttribution: m1r1k commentedHere is patch
Comment #2
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs commentedComment #3
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs commentedComment #4
vidhatanand CreditAttribution: vidhatanand at OpenSense Labs commentedComment #6
vidhatanand CreditAttribution: vidhatanand at OpenSense Labs commentedComment #7
vidhatanand CreditAttribution: vidhatanand at OpenSense Labs commented