Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1374

Pass "$object" as 1st parameter in the "FormSubmissionHelper::getFieldByName" calls

    XMLWordPrintable

    Details

    • 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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                erik Erik Snarski [Intechnic]
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: