Uploaded image for project: 'Empire-DB'
  1. Empire-DB
  2. EMPIREDB-281

SelectInputControl: Problem with updating options

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • empire-db-2.4.7
    • empire-db-2.5.0
    • JSF2 Extensions
    • None

    Description

      When you update the options for a column in a record (e. g. in an ajax call) the option in the SelectInputControl won't be updated, if the value is the same. So the options description is kept forever.

      A fix may be to change line 192 to

      if (ObjectUtils.compareEqual(ov, oe.getValue()) && ObjectUtils.compareEqual(si.getItemLabel(), oe.getText()))
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            derjan Jan Glaubitz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment