Posted: March 19, 2017 at 11:58 pm
|
Hi there, I tracked down what I think is a bug you might be interested in. Scenario: we use [PRIMARY_REGISTRANT_ANSWER_*] to (a) send emails to a person other than the attendee (b) in the body of message templates. The bug manifests itself in registrations that have been moved by the attendee mover. When we choose to manually resend moved registrations via the Registrations screen (after a moved email), we noticed blanks where the answers to the questions should have been substituted. Tracing the code, I found the problem to be a lookup in
The problem shows up in this snippet:
Further digging revealed that the objects are created in
This calls The problem appears to be in the body of the primary_registration() function, which uses the I fixed this issue by:
This doesn’t matter in when parsing other PRIMARY_REGISTRANT fields because they map to method calls on an object that is correctly populated. My guess is that the real solution is to amek the get_first_related call do an order-by primary key descending, but I’ve no idea what effect this might have. Hope that’s useful, would love to know your opinion. Daragh |
Hi there, Thank you for for reaching out and reporting this. In the future if you run into another issue like this, these are best posted as an issue on Github: |
|
And actually, if you can submit a pull request with your changes, the developers can review and follow up with you. |
|
|
Great. Thanks Josh – I wasn’t sure. Hope that it helps! |
|
Just submitted as an issue. |
The support post ‘Attendee Mover and PRIMARY_REGISTRANT_ANSWER_* error’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.