Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-46280

Activity auto linking filter breaks when similar activity names are used

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Make sure that filter autolinking activities name is enabled
      2. Create activities in the course with similar names, such as "forum", "some forum", "some forum new", "forum new" etc.
      3. Add a label (or block or any other text content in the course) that mentions those activities
      4. Make sure the links are created to the appropriate activities
      Show
      Make sure that filter autolinking activities name is enabled Create activities in the course with similar names, such as "forum", "some forum", "some forum new", "forum new" etc. Add a label (or block or any other text content in the course) that mentions those activities Make sure the links are created to the appropriate activities
    • Workaround:
      Hide

      Where one activity includes the name of another, include characters that discretely identify each activity somehow.

      Show
      Where one activity includes the name of another, include characters that discretely identify each activity somehow.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:
      wip-MDL-46280-master

      Description

      Activity auto linking does not pick up correct activity if the activity is given a similar name.

      For example:
      "Session 1 – Help Forum" and just plain "Help Forum”, the activity auto-linking filter is picking up the latter, even when you type in the full “Session 1 – Help Forum”.

      Replication steps:

      1. Enable the Activity names filter
      2. Create two activities in a course with similar names (ie. Session 1 – Help Forum and Help Forum)
      3. Add an HTML block to the course
      4. Configure the HTML block and type in the name of one activity (ie. Session 1 - Help Forum)

      Actual result: The link will show up and be linked to 'Help Forum' and not 'Session 1 - Help Forum'.

      Expected result: ??? It is not clear which activity should be given preference.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Sep/14