-
Notifications
You must be signed in to change notification settings - Fork 10
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
Replace smarty fetch()
call with CRM_Utils_String::parseOneOffStringThroughSmarty()
#53
base: master
Are you sure you want to change the base?
Conversation
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.
The point of using the new method is to make instantiation of the CRM_Core_Smarty
class obsolete, as it is being instantiated inside that new method again.
i see. will add some comments with further questions |
CRM/Moregreetings/Form/Settings.php
Outdated
@@ -163,7 +163,7 @@ public static function validateSmarty($smartyValue) { | |||
|
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.
i guess, this can be removed as well as it would only be invoked in $smarty->fetch()
and parseOneOffStringThroughSmarty
(as seen in the code) registers its own error handler?
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.
This is being referenced as a form rule here:
$this->registerRule('is_valid_smarty', 'callback', 'validateSmarty', 'CRM_Moregreetings_Form_Settings'); |
So the rendering within that method should be adjusted as well (or refactored to use a single render method)
…fStringThroughSmarty removed obsolete smarty occurences and related code increased version of civicrm docker image to 5.75 in order to be able to use CRM_Utils_String::parseOneOffStringThroughSmarty
62620c4
to
af7c691
Compare
rephrased comment about necessary civicrm version in phpunit workflow file
With enough test feedback this should go into a |
fetch()
call with CRM_Utils_String::parseOneOffStringThroughSmarty()
Replaced smarty
fetch()
call withCRM_Utils_String::parseOneOffStringThroughSmarty
systopia-reference: 27391