Needs review
Project:
Signup
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2011 at 14:27 UTC
Updated:
18 May 2013 at 05:40 UTC
Jump to comment: Most recent file
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
$signupobject before altering it does the trick.This is present in both the 7.x and 6.x branches and needs backport.
Comment #2
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 commentedpatch here.