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

[REF] Replace ->assign with CRM_Core_Smarty::singleton()->assign in preparation for making function shareable #13444

Merged
merged 1 commit into from
Jan 15, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Minor function change preparatory to other changes - no impact

Before

no change

After

no change

Technical Details

Per PR 1330 there is an intention to make this form receipting function a shared function. Part of making it sharable is making it static.

This is a preparatory refactor towards that end, getting rid of the 'this' in assigning variables to smarty

Comments

@jitendrapurohit just spinning off this small change - we should be able to avoid calling assignMessageVariables which should be deprecated

…tion for making function shareable

Per PR 1330 there is an intention to make this form receipting function a shared function. Part of making it sharable is making it static.

This is a preparatory refactor towards that end, getting rid of the 'this' in assigning variables to smarty
@civibot
Copy link

civibot bot commented Jan 13, 2019

(Standard links)

@civibot civibot bot added the master label Jan 13, 2019
@seamuslee001
Copy link
Contributor

@eileenmcnaughton whilst this seems fine i would be more comfortable with a unit test to ensure these variables are indeed assigned right.

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 I think @jitendrapurohit has written a unit test, although it can't be added until we are further along the refactor

@seamuslee001
Copy link
Contributor

Discussed this a bit more with Eileen adn i am satisfied this should be ok merging

@seamuslee001 seamuslee001 merged commit f72d5f5 into civicrm:master Jan 15, 2019
@seamuslee001 seamuslee001 deleted the payment_smarty branch January 15, 2019 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants