-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.2.0-RC1
-
Fix Version/s: 5.2.0
-
Component/s: PHP Compatibility
-
Labels:None
-
External issue URL:
-
Change Log Message:Fixes fatal error on e-mail event denial (on PHP 5.2.x)
-
Story Points:1
-
External issue ID:1327
-
Copy Issue Key:
-
Patch Instructions:
In In-Portal 5.1.2 we've introduced e-mail event syntax check before saving (see #0000822) to prevent user from getting Fatal Error due incorrect template syntax when e-mail event will be sent.
However if you'll have a project were e-mail email events have template syntax errors in them and you upgrade this project to 5.1.2 then you still get Fatal Error, when trying to send out that e-mail event (because no automatic way to fix e-mails events, that are broken).
Also when trying to enable/disable these e-mail events from e-mail event list you'll get "Query method undefined" error and selected e-mail events will still be in same status as before.
Template syntax checking code was reworked in 5.2.0-RC1 to use PHP exceptions ([url]http://lv.php.net/manual/en/language.exceptions.php[/url]), but by mistake this code was made PHP 5.3.0+ compatible only (see [url]http://lv.php.net/manual/en/exception.construct.php[/url]) due $previous parameter usage, that was added only in PHP 5.3.0.