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

Allow database and glossary entries to be unapproved

    XMLWordPrintable

Details

    • MOODLE_21_STABLE, MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • Hide

      Prerequisites:

      • A course, C1.
      • Two users enrolled in this course, U1 (as student) and U2 (as teacher).
      • A glossary activity in C1, with "Entries -> Approved by default" set to "No", and without any entries present.

      Test script (database activity):

      • Log in as U2 and go to course C1.
      • Create a new database activity, setting "Entries -> Approval required" to "Yes"
      • Go to tab "Fields" and add at least one field (of any type).
      • Click "Templates".
      • Verify: the "List template" and the "Single template" both contain the text "##approve## ##disapprove## ##export##".
      • Log in as U1.
      • Go to the database activity (as created above).
      • Add an entry to the database.
      • Log in as U2.
      • Go to the database activity.
      • Verify: One entry is shown in the list of entries, with "Approve" button present (grey tickmark icon).
      • Click the "Approve" button.
      • Verify: Green message is displayed ("Entry approved"). Entry is now shown with "Disapprove" button present (grey circle with vertical bar).
      • Click the "Disapprove" button.
      • Verify: Green message is displayed ("Entry disapproved"). Entry is again shown with "Approve" button present (grey tickmark icon).

      Test script (glossary activity):

      • Log in as U1.
      • Go to the glossary activity.
      • Add an entry to the glossary.
      • Log in as U2.
      • Go to the glossary, and click "Waiting approval".
      • Verify: One entry is shown in the list of entries to be approved, with "Approve" button present (grey tickmark icon on the top-right).
      • Click the "Approve" button.
      • Verify: List is now empty.
      • Go back to the main screen of the glossary.
      • Verify: List contains one entry, with "disapprove" button shown on the bottom-right (grey circle with vertical bar).
      • Click the "Disapprove" button.
      • Verify: List is now empty. At top-right of screen, there is a link "Waiting approval (1)".
      • Click "Waiting approval".
      • Verify: One entry is shown in the list of entries to be approved.
      Show
      Prerequisites: A course, C1. Two users enrolled in this course, U1 (as student) and U2 (as teacher). A glossary activity in C1, with "Entries -> Approved by default" set to "No", and without any entries present. Test script (database activity): Log in as U2 and go to course C1. Create a new database activity, setting "Entries -> Approval required" to "Yes" Go to tab "Fields" and add at least one field (of any type). Click "Templates". Verify: the "List template" and the "Single template" both contain the text "##approve## ##disapprove## ##export##". Log in as U1. Go to the database activity (as created above). Add an entry to the database. Log in as U2. Go to the database activity. Verify: One entry is shown in the list of entries, with "Approve" button present (grey tickmark icon). Click the "Approve" button. Verify: Green message is displayed ("Entry approved"). Entry is now shown with "Disapprove" button present (grey circle with vertical bar). Click the "Disapprove" button. Verify: Green message is displayed ("Entry disapproved"). Entry is again shown with "Approve" button present (grey tickmark icon). Test script (glossary activity): Log in as U1. Go to the glossary activity. Add an entry to the glossary. Log in as U2. Go to the glossary, and click "Waiting approval". Verify: One entry is shown in the list of entries to be approved, with "Approve" button present (grey tickmark icon on the top-right). Click the "Approve" button. Verify: List is now empty. Go back to the main screen of the glossary. Verify: List contains one entry, with "disapprove" button shown on the bottom-right (grey circle with vertical bar). Click the "Disapprove" button. Verify: List is now empty. At top-right of screen, there is a link "Waiting approval (1)". Click "Waiting approval". Verify: One entry is shown in the list of entries to be approved.

    Description

      It would be great to have a way of unapproving database and glossary entries which have been approved by accident i.e. setting to require approval again. Currently it can only be done through phpmyadmin http://docs.moodle.org/20/en/Database_activity_module_FAQ#How_can_I_hide_a_database_entry_which_was_previously_approved.3F

      Attachments

        Issue Links

          Activity

            People

              bostelm Henning Bostelmann
              tsala Helen Foster
              Adrian Greeve Adrian Greeve
              Dan Poltawski Dan Poltawski
              Jason Fowler Jason Fowler
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona), Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13