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

Database field - Remove autolink setting for short text field type

XMLWordPrintable

    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-80949-main
    • Hide

      Setup

      The following steps must be executed before applying the patch:

      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-80949.feature.
      4. Run the following command to create a course with a few subsection activities: 

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

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

      5. Run the following SQL and confirm it returns 1 or higher:

        SELECT count(*)
        FROM mdl_data_fields
        WHERE type = 'text' AND param1 != ''
        

      Testing scenario

      1. Apply the patch.
      2. Upgrade the site.
      3. Go to the course MDL-80949.
      4. Access the Database 1 activity.
      5. Go to the Fields section and edit the short text field.
      6. Confirm that the "Allow autolink" checkbox is not displayed anymore.
      7. Run the following SQL and confirm it returns 0:

        SELECT count(*)
        FROM mdl_data_fields
        WHERE type = 'text' AND param1 != ''
        

      8. Delete the "Database 1" activity.
      9. Run the following command to recreate the database activity again: 

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

      10. Check it returns "3/5 steps executed successfully."
      11. Access the Database 1 activity.
      12. Go to the Fields section and check the short text field has been created.
      13. Run the following SQL and confirm it returns 0:

        SELECT count(*)
        FROM mdl_data_fields
        WHERE type = 'text' AND param1 != ''
        

      Show
      Setup The following steps must be executed before applying the patch: Login as admin. Go to Site administration > Plugins > Admin tools > Recycle bin" and disable "Enable course recycle bin".  Download the attached MDL-80949.feature . Run the following command to create a course with a few subsection activities:  php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature" It might fail while trying to create the users if s1 and s2 already exist in your local instance. If that's the case, this error can be ignored. Run the following SQL and confirm it returns 1 or higher: SELECT count(*) FROM mdl_data_fields WHERE type = 'text' AND param1 != '' Testing scenario Apply the patch. Upgrade the site. Go to the course MDL-80949 . Access the Database 1 activity. Go to the Fields section and edit the short text field. Confirm that the "Allow autolink" checkbox is not displayed anymore. Run the following SQL and confirm it returns 0: SELECT count(*) FROM mdl_data_fields WHERE type = 'text' AND param1 != '' Delete the "Database 1" activity. Run the following command to recreate the database activity again:  php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature" Check it returns "3/5 steps executed successfully." Access the Database 1 activity. Go to the Fields section and check the short text field has been created. Run the following SQL and confirm it returns 0: SELECT count(*) FROM mdl_data_fields WHERE type = 'text' AND param1 != ''
    • 1
    • HQ 2024 Sprint I1.2 Moppies

      While reviewing a plugin, I noticed the Allow Autolink checkbox. I checked different fields and could not find what this was used for.

      It seems that this is an obsolete option that can / should be removed.

       

            sarjona Sara Arjona (@sarjona)
            laurent.david@moodle.com Laurent David
            Laurent David Laurent David
            Amaia Anabitarte Amaia Anabitarte
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 8 minutes
                3h 8m

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