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

Cividiscount - admin edit screen doesn't display membership statuses selected

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.6.9
    • Component/s: Extension System
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      If you select statuses (New, Current,Expired..) other than the default 'active only' the choices are kept in the database but not displayed. The fix is to add one line to setMembershipStatusDefaults, returning $values['membership']['status_id']['IN'] as shown below:
      /**

      • Set default for membership status based on presence of 'active_only' param
      • @param unknown $defaults
      • @param unknown $fieldName
      • @param unknown $value
      • @param unknown $spec
        */
        function setMembershipStatusDefaults(&$defaults, $fieldName, $values, $spec)
        Unknown macro: { if (!empty($values['membership']['active_only'])) { return ''; } return $values['membership']['status_id']['IN']; }

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              zorgalina Zorga Lina
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: