Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-904

"Lenght of gap" within a gap text is extended to length of all synonyms instead of the longest

    XMLWordPrintable

    Details

      Description

      How to reproduce

      • Create a test
      • Add a "Gap Text"
      • Click on "Question/Answers and add a new blank
      • Chance "Number of Characters" to e. g. 4 and "Length of gap" to 20
        -> the length of the gab is reduced to 4 characters, but you can fill in 20 characters
      • Set the "Number of Characters" to 20 and chance the "Length of gap" to e.g. 4
        -> the length of the gap is automatically extended to the length of the value in the editor

      This behavior is as designed. However, when the text in the editor is not a single word but a list of synonyms, the "Number of Characters" is automatically changed to the length of all synonyms combined, which is wrong.

      Example:
      "abc" will always require a "Number of Characters" >= 3
      "abc;ABC" will always require a "Number of Characters" >= 7 (WRONG)
      "abc;abcd" will always require a "Number of Characters" >= 8 (WRONG)

      Should be fixed to:
      "abc" will always require a "Number of Characters" >= 3
      "abc;ABC" will always require a "Number of Characters" >= 3
      "abc;abcd" will always require a "Number of Characters" >= 4

        Attachments

          Activity

            People

            • Assignee:
              gnaegi Florian Gn├Ągi
              Reporter:
              asaldani Daniel Asal
              Tester:
              Daniel Asal
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes Time Not Required
                30m