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

Notice: Undefined index when viewing a Membership with FT ACLs disabled

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7.1
    • Component/s: CiviContribute
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      If "Access Control by Financial Type" is NOT enabled, the following notice is thrown when viewing a Membership:

      Notice: Undefined variable: finType in CRM_Member_Form_MembershipView->preProcess() (line 172 of /Users/dgg/git/crm_v4.7/CRM/Member/Form/MembershipView.php).

      Either the code which retrieves finType needs to be called regardless of whether ACL by FT is enabled or not .. OR if finType isn't needed in that case, then the assign should be conditional ... OR an empty value should be assigned.

      Separately - the variable naming here is quite confusing since it looks to me like the label is being assigned to a smarty variable called financialTypeId on line 172. Is this a string or an ID ??

        Attachments

          Activity

            People

            • Assignee:
              edsel Edsel Lopez
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: