Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-1725

Issue when deleting a questionair containing extra white spaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTA 7.0.0
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      When importing a questionnair, and the name in the yaml file contains extra spaces such as:

      "name": "Test questionnaire   test"

      the application trims the extra white spaces leaving the name looking like:

       

      When trying to delete this questionair it requires to enter the name as shown in the UI ( with the spaces trimmed) but the delete button is not enabled unless the name from the yaml file ( with extra spaces ) is entered. 

      Version-Release number of selected component (if applicable):

       7.0.0

      How reproducible:

      Always

      Steps to Reproduce:

      1. Edit the template file and add a name containing extra spaces e.g. "test    questionnair"
      2. Navigate to the MTA UI > administraion > Assessment questionnaires
      3. click on Import questionnaire and select the file to be imported
      4. once imported try to delete the questionnaire

      Actual results:

      The delete button is disabled, even if you type in the same name that is requested, and the button is enabled only when you type in the exact name as in the file

      Expected results:

      The user should be warned about this, or if the name is trimmed, then the UI should be able to accept the name trimmed

       

      Additional info:

        1. extra spce not handled.gif
          2.19 MB
          mohamed idays
        2. image-2023-11-22-17-38-45-068.png
          5 kB
          mohamed idays

              sdickers@redhat.com Scott Dickerson (Inactive)
              midays mohamed idays
              mohamed idays mohamed idays
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: