Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-12394

Typo in "Name Tent" event badge class causes fatal error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 4.3.2
    • Component/s: CiviEvent

      Description

      CiviCRM throws an error when trying to create name tent badges because of a typo in the class.

      TL;DR: civicrm\civicrm\CRM\Event\Badge\NameTent.php line 48 needs to be changed from "lMargin" not "lMarging".

      Full error:

      Notice: Undefined property: CRM_Event_Badge_NameTent::$lMarging in D:***\wp-content\plugins\civicrm\civicrm\CRM\Event\Badge\NameTent.php on line 48 TCPDF ERROR: Some data has already been output, can't send PDF file

      Code that needs to be changed:

      FROM
      $w = $pw - 2 * $this->lMarging;
      TO
      $w = $pw - 2 * $this->lMargin;

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              rd11 Robert Dahnke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 minutes
                2m
                Remaining:
                Remaining Estimate - 2 minutes
                2m
                Logged:
                Time Spent - Not Specified
                Not Specified