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

Adding a new external backpack is not checking the values added are unique

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.9.4, 3.10.1
    • None
    • Badges
    • MOODLE_310_STABLE, MOODLE_39_STABLE

    Description

      'badge_external_backpack' table has two unique index:

      • backpackapiurl
      • backpackweburl

      Before inserting a new backpack in the database we should check the values don't exist.

      Steps to reproduce:

      1. Go to site administration > Badges > Manage backpacks
      2. Add a new backpack
      3. Backpack API URL = https://api.badgr.io/v2 and Backpack URL = https://badgr.io
      4. Save changes
      5. Add a new backpack
      6. Backpack API URL = https://api.badgr.io/v2 and/or Backpack URL = https://badgr.io
      7. Save changes

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            amaia Amaia Anabitarte
            Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: