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

Add a NEVER option to "Entries required before viewing" in database activity

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 3.9.1
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      Several workaround is described in order to prevent students to see all entries except only their own:
      https://moodle.org/mod/forum/discuss.php?d=371417

      The most voted seems to make the 'Entries required before viewing' bigger than 'Maximum number of entries'. Unfortunately both settings has the same maximum of 50.

      This prevent to have a unlimited number of entries per student and the feature required at the same time.

      The suggestion is to add a value "NEVER" to the drop down 'Entries required before viewing' with the value of MAX_INT: the DML schema declares the field "requiredentriestoview" of type "int", so I suppose the value of 2147483647 (2^31) should be compatible with all db backends.
      At a first glance, this patch has no impact in the rest of the codebase.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            aulaweb AulaWeb Università di Genova
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: