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

Fix undefined tpl vars #20684

Merged
merged 1 commit into from
Jun 21, 2021
Merged

Fix undefined tpl vars #20684

merged 1 commit into from
Jun 21, 2021

Conversation

colemanw
Copy link
Member

Overview

Ensure variables referenced in the template are defined.

Followup from #20664

@civibot civibot bot added the master label Jun 21, 2021
@civibot
Copy link

civibot bot commented Jun 21, 2021

(Standard links)

if ($this->_showFeeBlock) {
$this->assign('showFeeBlock', TRUE);
$isMonetary = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $this->_showFeeBlock, 'is_monetary');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks ok as-is just am a little confused at how this was coming up undefined in the tpl because there's a default set at line 273.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it wasn't - it was showing as a pattern in php land - FWIW my thinking is that we can separate this craziness out by building on #20679 with a PR that creates a new FeeBlock form that is a subform of this one. There is so much to unravel & I've been trying to figure out how to break it down & I think that will work

@eileenmcnaughton eileenmcnaughton merged commit be5c39d into civicrm:master Jun 21, 2021
@eileenmcnaughton eileenmcnaughton deleted the tplVars branch June 21, 2021 20:36
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.

3 participants