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

Badge edit submissions, while in Edit details tab, failing on issuername being null


    • Moppies Kanban

      There appears to be an issue with editing and resaving badge details on the QA site and on my test 3.9 site, after testing duplicating badges for MDLQA-14537.

      New badges are being created fine with no issues at all, both original and copies.

      However, with both original and copies of badges, if you try to edit their details and save again, while in the Edit details tab, the following error shows up, which I believe is a regression and related to the 3.9 changes made in MDL-68746, which was hiding the Issuer details for openbadges v2 in the badge edit form.


      Debug info: Column 'issuername' cannot be null
       UPDATE mdl_badge SET name = ?,description = ?,timecreated = ?,timemodified = ?,usercreated = ?,usermodified = ?,issuername = ?,issuerurl = ?,issuercontact = ?,expiredate = ?,expireperiod = ?,type = ?,courseid = ?,message = ?,messagesubject = ?,attachment = ?,notification = ?,status = ?,nextcron = ?,version = ?,language = ?,imageauthorname = ?,imageauthoremail = ?,imageauthorurl = ?,imagecaption = ? WHERE id=?
       [array (
       0 => 'Original',
       1 => 'Original',
       2 => '1591183695',
       3 => 1591184789,
       4 => '3',
       5 => '3',
       6 => NULL,
       7 => NULL,
       8 => NULL,


      Steps to reproduce:

      1. Create a new badge fully, either as admin or teacher
      2. Edit the badge
      3. Go to the Edit details tab in the badge edit page
      4. Click on Save changes
      5. You should see the following error:

      Error writing to database
       More information about this error
       Debug info: Column 'issuername' cannot be null

            sarjona Sara Arjona (@sarjona)
            wuzi1999 Karen Holland
            Mihail Geshoski Mihail Geshoski
            Victor Déniz Falcón Victor Déniz Falcón
            CiBoT CiBoT
            0 Vote for this issue
            3 Start watching this issue


                Original Estimate - Not Specified
                Not Specified
                Remaining Estimate - 0 minutes
                Time Spent - 1 hour, 32 minutes
                1h 32m

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