-
-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRM-20637 extend expired price fields in backend #10423
Conversation
I figured I'd review this to help reduce the PR queue, and this one is pretty old. Review(CiviCRM Review Template WORD-1.1)
Opinions from other people requested to resolve
|
I'm for "b". My aim in CRM-19918 for which #9764 was the merged solution) was indeed to bring the "Change Selections" screen to a point where it would function consistently with the "Add Event Registration" screen. When it comes to the more fundamental question you've posed, "b" makes a lot more sense than "a". |
I'm for "b" as well. I had to work around this some time ago for a client by waiting for the option to expire, then changing it from public to admin and removing the expiry date. However, it would be helpful if you could see on the backend that the option was expired - add "(expired)" in brackets to the label or something? |
if (($className == 'CRM_Event_Form_ParticipantFeeSelection' && $form->_action == CRM_Core_Action::UPDATE) || | ||
($className == 'CRM_Event_Form_Participant') | ||
) { | ||
$validOnly = FALSE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the name of the original variable $getAllPriceFields
was misleading (inverted) but the new variable name is good.
Can we get a more meaningful comment added in here somewhere explaining the intent of the code? Eg.
// Allow selection of expired price-set options on backend forms
If anyone will be at the sprint next week this & #10804 would be good to discuss while there |
I've opened this to track this issue until an approach is agreed (at which point it can be looked at from a code review point of view) https://lab.civicrm.org/dev/core/issues/145 |
see the explanation in Jira for rational. this extends access to expired price set fields in the backend. it also changes the variable name to be inline with it's purpose and term in the method declaration. the existing variable name is misleading.