Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #6138
Closed
Open
Issue created Dec 17, 2020 by bmortier@bmortierMaintainer

SelectAttribute should also reset postValue in setChoices

In SelectAttribute::setChoices, we check that $this->value is in the list of authorized choices, but we do not check $this->postValue. This causes problems in the edgecase where setChoices is called in-between readPostValue and applyPostValue, leaving the field with a invalid value despite the call to setChoices.

It is a problem for CSV import template selection field.

Edited Jan 05, 2021 by bmortier
Assignee
Assign to
Time tracking