Skip to content
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

dev/core#187 Fix typo in CRM_Grant_Form_Task that prevents retrieving session key from URL #12317

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

mattwire
Copy link
Contributor

Overview

Identified during investigation for dev/core#158

Before

Cannot retrieve session key for Grant form task.

After

Session key for Grant form task is retrieved just like all other tasks.

Technical Details

The wrong object was being used in static context ($this instead of $form).

@civibot
Copy link

civibot bot commented Jun 15, 2018

(Standard links)

@eileenmcnaughton
Copy link
Contributor

@mattwire I agree with this change but we now have a new rule 'Alphanumeric' and we should use this instead of 'String' whereever possible (ie. when we only expect letters, numbers and underscore)

@mattwire
Copy link
Contributor Author

I agree with this change but we now have a new rule 'Alphanumeric' and we should use this instead of 'String' whereever possible (ie. when we only expect letters, numbers and underscore)

@eileenmcnaughton Ok, but if we change it here we should really change it for all the other CRM_*_Task functions as well or this one will be different... Can we apply this PR as it is (as it's just a typo) and consider a separate PR to change it from String to Alphanumeric?

@eileenmcnaughton
Copy link
Contributor

Ok @mattwire - I guess in principle 'whenever' we touch a 'String' we should try to change to Alphanumeric but I'm not digging in on this instance.

Also on reflection I think CRM_Core_Form should have a getter function for QFKey & we should use that anyway

@eileenmcnaughton eileenmcnaughton merged commit 0234f5b into civicrm:master Jun 21, 2018
@mattwire mattwire deleted the grant_form_task branch September 25, 2018 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants