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

Database URL text field should be removed

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Create an empty course.
      • Create a database activity in the course, with default settings.
      • From the "create a new field" dropdown box, choose "URL".
      • Enter the following settings:
        • Field name: "myurl"
        • Autolink the URL: ticked
        • Forced name for the link: "link"
      • Click "Save"
      • Click "Templates" (to generate default templates)
      • Click "Add Entry"
      • VERIFY: Only one text entry box is shown.
      • Enter a valid URL into the box, and click "Save and View"
      • VERIFY: Link is being displayed (with text "link") and is clickable.
      Show
      Create an empty course. Create a database activity in the course, with default settings. From the "create a new field" dropdown box, choose "URL". Enter the following settings: Field name: "myurl" Autolink the URL: ticked Forced name for the link: "link" Click "Save" Click "Templates" (to generate default templates) Click "Add Entry" VERIFY: Only one text entry box is shown. Enter a valid URL into the box, and click "Save and View" VERIFY: Link is being displayed (with text "link") and is clickable.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      If a teacher already entered the 'Website' into the 'Forced name for the link' field, as most Teachers do this to keep the List view table slim:

      There is an extra Text field appears under URL field in 'Add entry' tab of Database activity,
      Whatever a user input into it makes no use. It is not for dipay, not for mouse over, not for search...

      If the 'Forced name for the link' field is blank, then, the text is useful and searchable.

      Ideally, if the 'Forced name for the link' field was filled out, then the 'Text field' should be hidden automatically.

      To work around, we have to use the CSS to hide this text field,

      https://moodle.org/mod/forum/discuss.php?d=334327#p1347446

        Attachments

          Activity

            People

            Assignee:
            bostelm Henning Bostelmann
            Reporter:
            wenxin Wenxin Lu
            Peer reviewer:
            Mark Nelson
            Integrator:
            Dan Poltawski
            Tester:
            Adrian Greeve
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Jan/17