Uploaded image for project: 'ONE'
  1. ONE
  2. ONE-34016

sp-select - Parent types select in Box Type config can double the query results



    • No
    • Space
    • BigPicture, BigGantt
    • JIRA server, JIRA cloud
    • 5
    • 5
    • $i18n.getText("admin.common.words.hide")
      var cfToHide1 = document.getElementById("rowForcustomfield_18501"); if(cfToHide1){cfToHide1.style.display="none";} var cfToHide2 = document.getElementById("rowForcustomfield_18502"); if(cfToHide2){cfToHide2.style.display="none";} var cfToHide3 = document.getElementById("rowForcustomfield_19700"); if(cfToHide3){cfToHide3.style.display="none";} var cfToHide4 = document.getElementById("rowForcustomfield_18400"); if(cfToHide4){cfToHide4.style.display="none";}
    • Sprint 2021/09, Sprint 2021/10, Sprint 2021/11
    • PI2021/4
    • Testing quality
    • 1 day, 49 minutes, 11 seconds
    • 3 days, 2 hours, 42 minutes, 47 seconds
    • 3 days, 16 hours, 1 minute, 25 seconds
    • 5 days, 4 hours, 15 minutes, 45 seconds
    • 6 minutes, 26 seconds
    • 1 week, 5 days, 18 hours, 34 minutes, 58 seconds
    • 3 weeks, 1 day, 6 hours, 37 minutes, 3 seconds
    • $i18n.getText("admin.common.words.hide")
      var cfToHide1 = document.getElementById("rowForcustomfield_21302"); if(cfToHide1){cfToHide1.style.display="none";} var cfToHide2 = document.getElementById("rowForcustomfield_19201"); if(cfToHide2){cfToHide2.style.display="none";} var cfToHide3 = document.getElementById("rowForcustomfield_19300"); if(cfToHide3){cfToHide3.style.display="none";} var cfToHide4 = document.getElementById("rowForcustomfield_19301"); if(cfToHide4){cfToHide4.style.display="none";} var cfToHide5 = document.getElementById("rowForcustomfield_19302"); if(cfToHide5){cfToHide5.style.display="none";} var cfToHide6 = document.getElementById("rowForcustomfield_19303"); if(cfToHide6){cfToHide6.style.display="none";} var cfToHide7 = document.getElementById("rowForcustomfield_19204"); if(cfToHide7){cfToHide7.style.display="none";} var cfToHide8 = document.getElementById("rowForcustomfield_19205"); if(cfToHide8){cfToHide8.style.display="none";}



      Reproduction steps:

      1. Open Administration on Box Types tab.
      2. Go to Program Box type configuration page on the General, Basics tab.
      3. Click on the Parent Types select.
      4. Check if the Main is available to select on the dropdown list (it should not be, as it is already added to parent types for that Box Type).
      5. Type in "Main".
      6. Click on the result and add the new Main.
      7. Click on the select and type in "Main" again.
      8. Without choosing from the dropdown, click on the "X" of one of the selected Mains.

      Actual result:
      The sp-select allows to search for, and chose the same result twice, resulting in the following issues:
      Step 5: The "Main" type shows up on the dropdown list, even though it is already added as a parent type.
      Step 6: The "Main" type is added to the parent type for the second time.
      Step 8: The "Main" type is cloned on the dropdown list.

      Expected result:
      The sp-select component does not allow to search and select results that are already selected, making it impossible to add the same parent type more than one time.

      Even if two or more of the same parent type are added and saved, they disappear after save and refresh




            michal.piaskowski Michał Piaskowski
            krzysztof.luczak Krzysztof Łuczak
            tomasz.jaskiewicz Tomasz Jaśkiewicz , mateusz.kielbowicz Mateusz Kielbowicz , krzysztof.luczak Krzysztof Łuczak , aneta.wojcik Aneta Wójcik , pawel.guz Pawel Guz , system.gerrit Gerrit , michal.piaskowski Michał Piaskowski , grzegorz.duzy Grzegorz Duży , jakub.zygmunt Jakub Zygmunt (Inactive)
            0 Vote for this issue
            2 Start watching this issue