-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.2.1-RC1
-
Fix Version/s: 5.2.1
-
Component/s: Data Management
-
Labels:None
-
Change Log Group:Fixed
-
Change Log Message:Fixed Fatal Error, when <inp2:formsubs_FormField/> tag was called without "role" parameter.
-
Copy Issue Key:
-
Patch Instructions:
When you try to use <inp2:formsubs_FormField name="FieldNameHere"/> tag in e-mail template you will get the following Fatal Error:
Fatal error: Call to a member function GetDBField() on a non-object in /path/to/project/core/units/helpers/form_submission_helper.php on line 86
This happens because form submission object isn't passed to getFieldByName method call. It's passed to the getFieldByRole method above though.
The error was there for a long time and nobody noticed it because tag isn't used in the "advanced" theme.
- mentioned in
-
Page Loading...