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.
The unchanged values stored into $form['#signup']
while editing a signup are altered together with the submitted values, since the $signup
variable holds an object reference in PHP5. This causes troubles to Signup status which cannot tell if a status has changed and perform the needed actions.
Comment | File | Size | Author |
---|---|---|---|
#3 | signup-preserve_signup_values-1273174-3.patch | 945 bytes | Jerenus |
#1 | signup-1273174-1.patch | 594 bytes | plach |
Comments
Comment #1
plachCloning the
$signup
object before altering it does the trick.This is present in both the 7.x and 6.x branches and needs backport.
Comment #2
Jerenus CreditAttribution: Jerenus commentedI saw the line drupal_clone here.
This will causes an error if called because it has been removed in drupal 7.
This drupal_clone function was used to provide a substitute clone() function for PHP4.
We need a new patch here.
Comment #3
Jerenus CreditAttribution: Jerenus commentedpatch here.