Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C CiviDiscount
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Extensions
  • CiviDiscount
  • Issues
  • #265
Closed
Open
Issue created Jul 07, 2021 by bgm@bgmOwner

Price field options missing if there are two or more price sets that contain fields with the same label

Created by: freeform-sg

Original discussion on StackOverflow

As of version 3.8.3 there appears to be an issue if any price fields from different price sets share any labels. Here are the steps to reproduce:

  1. Create a price set of type event, add multiple fields
  2. Duplicate the price set, without changing the labels of any of the fields
  3. Create an event and select the 1st price set
  4. Create a second event and select the 2nd price set
  5. Create a discount code and view the available price fields: for each price set you created only 1 field's options will be available (Screenshot 1)
  6. Attempt to create a discount code again and this time all price fields from both price sets should be available (Screenshot 2)

Additionally; if you change the labels so that only 1 field label is not unique, then you will see:

  • Price set 1 options: Only the field whose label is NOT unique
  • Price set 2 options: Only the fields whose labels ARE unique (Screenshot 3)
Assignee
Assign to
Time tracking