Moodle

Question name can contain image tags

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.6
  • Fix Version/s: 1.8.3, 1.9
  • Component/s: Questions
  • Labels:
    None
  • Environment:
    All
  • Affected Branches:
    MOODLE_16_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

I do not seem to be able to sort by question name. The question names are q.161, q.162, q.163 but when I sort by question name all the questions that contain an image float to the top.

Tim

Activity

Hide
Martin Dougiamas added a comment -

From Gustav Delius (gwd2 at york.ac.uk) Thursday, 27 April 2006, 03:49 PM:

If the question name is generated automatically from the question text then this can lead to question names that contain tags, for example image tags. This is not desirable, in particular it messes up the alphabetical ordering, as described by Tim above. The tags should be stripped.

From Timothy Takemoto (timothy at nihonbunka.com) Thursday, 27 April 2006, 04:04 PM:

Well put.

I think that this should be classified as a feature request rather than a propblem.

From Gustav Delius (gwd2 at york.ac.uk) Friday, 28 April 2006, 04:17 AM:

And I think it is a minor problem

Show
Martin Dougiamas added a comment - From Gustav Delius (gwd2 at york.ac.uk) Thursday, 27 April 2006, 03:49 PM: If the question name is generated automatically from the question text then this can lead to question names that contain tags, for example image tags. This is not desirable, in particular it messes up the alphabetical ordering, as described by Tim above. The tags should be stripped. From Timothy Takemoto (timothy at nihonbunka.com) Thursday, 27 April 2006, 04:04 PM: Well put. I think that this should be classified as a feature request rather than a propblem. From Gustav Delius (gwd2 at york.ac.uk) Friday, 28 April 2006, 04:17 AM: And I think it is a minor problem
Hide
Timothy Takemoto added a comment -

Ah, I get it. By being reclassified as "Open" when they were "In Progress" the system sends out message saying that work on the bug has stopped. Hmm...

In general, I like the new bug tracker.

Show
Timothy Takemoto added a comment - Ah, I get it. By being reclassified as "Open" when they were "In Progress" the system sends out message saying that work on the bug has stopped. Hmm... In general, I like the new bug tracker.
Hide
Tim Hunt added a comment -

Since 1.8, question name has been a required form field that cannot contain HTML tags, so this no longer arises.

Show
Tim Hunt added a comment - Since 1.8, question name has been a required form field that cannot contain HTML tags, so this no longer arises.
Hide
Timothy Takemoto added a comment -

Dear Tim Hunt

When you say that the "form field cannot contain HMTML tags" are you refering to the GUI? I don't use a form to create questions.

The problem arose for me when I used GIFT. If one does not supply a question name, then the GIFT importer made (1.6.4) the question itself the question name. Does 1.8 remove the HTML tags?

In 1.6 if the question is a multimedia file, such as perhaps an audio file liked from an icon, e.g
<a=href="sound.mp3"><img src="chime.gif"></a>Listen to this dialogue about tourism in France and answer answer the question
then the same string will be used as the question name.

Tim

Show
Timothy Takemoto added a comment - Dear Tim Hunt When you say that the "form field cannot contain HMTML tags" are you refering to the GUI? I don't use a form to create questions. The problem arose for me when I used GIFT. If one does not supply a question name, then the GIFT importer made (1.6.4) the question itself the question name. Does 1.8 remove the HTML tags? In 1.6 if the question is a multimedia file, such as perhaps an audio file liked from an icon, e.g <a=href="sound.mp3"><img src="chime.gif"></a>Listen to this dialogue about tourism in France and answer answer the question then the same string will be used as the question name. Tim
Hide
Tim Hunt added a comment -

You are right, it should be doing a strip-tags before making up a default question name.

Show
Tim Hunt added a comment - You are right, it should be doing a strip-tags before making up a default question name.
Hide
Timothy Takemoto added a comment -

Bingo. Thanks Tim

Show
Timothy Takemoto added a comment - Bingo. Thanks Tim

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: