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

Database field - Restore autolink setting for short text field type

XMLWordPrintable

    • MOODLE_404_STABLE, MOODLE_405_STABLE
    • MOODLE_404_STABLE
    • MDL-81875-404
    • MDL-81875-main
    • Hide

      Tested using behat.

      Manual tests (optional)

      Setup{}

      1. Login as admin.
      2. Go to Site administration > Plugins > Admin tools > Recycle bin" and disable "Enable course recycle bin". 
      3. Download the attached MDL-81875.feature.
      4. Run the following command to create a course with a database activity and a Text and media resource: 

        php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature"
        

        It might fail while creating the users if s1 and s2 already exist in your local instance. If that's the case, this error can be ignored.

      1. Go to  Site administration> Plugins > Filters and enable the database filter for content 

      Testing scenario

      1. Go to the course MDL-81875.
      2. Check that the label is linked to the database entry, but only "Text XYZK" ("Text ABCD" shouldn't be linked).
      3. Go to the Database activity.
      4. Access the Fields tab and edit the Test field name.
      5. Check it has an "Allow autolink" field and it's checked.
      6. Edit the Test field 2 name field.
      7. Check it has an "Allow autolink" field and it's unchecked.
      Show
      Tested using behat. Manual tests (optional) Setup { } Login as admin. Go to Site administration > Plugins > Admin tools > Recycle bin" and disable "Enable course recycle bin".  Download the attached MDL-81875.feature . Run the following command to create a course with a database activity and a Text and media resource:  php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature" It might fail while creating the users if s1 and s2 already exist in your local instance. If that's the case, this error can be ignored. Go to  Site administration> Plugins > Filters and enable the database filter for content  Testing scenario Go to the course MDL-81875 . Check that the label is linked to the database entry, but only "Text XYZK" ("Text ABCD" shouldn't be linked). Go to the Database activity. Access the Fields tab and edit the Test field name. Check it has an "Allow autolink" field and it's checked. Edit the Test field 2 name field. Check it has an "Allow autolink" field and it's unchecked.
    • 1
    • HQ 2024 Sprint I2.1 Moppies

      The field Autolink on the short text field type was incorrectly removed on MDL-80949

      This field is used for Database Autolinking: https://docs.moodle.org/404/en/Database_auto-linking_filter

      After removing this field, Database Autolinking is no longer working because you cannot identify the database text field that is used for autolinking.

      This feature is similar to the glossary autolinking and is expected to work.  

            laurent.david@moodle.com Laurent David
            avilela Antonio Vilela
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Amaia Anabitarte Amaia Anabitarte
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 55 minutes
                6h 55m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.