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

Return value of mod_data\template::get_tag_export_replacement() exception when portfolios are enabled

    XMLWordPrintable

Details

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-75390-master
    • Hide
      1. Login as admin.
      2. Go to Advanced features and Enable portfolios
      3. Create a database activity and add at least one field.
      4. Go to templates.
      5. Add an entry.
      6. Go to the List view.
      7. Check the page is loaded and that no error is displayed.
      8. Check the export icon is not displayed.
      9. Go to Plugins > Portfolios > Manage portfolios and enable any of the plugins (for instance, the "File download").
      10. Go to the List view.
      11. Check the page is loaded and that no error is displayed.
      12. Check the export icon is displayed.
      Show
      Login as admin. Go to Advanced features and Enable portfolios Create a database activity and add at least one field. Go to templates. Add an entry. Go to the List view. Check the page is loaded and that no error is displayed. Check the export icon is not displayed. Go to Plugins > Portfolios > Manage portfolios and enable any of the plugins (for instance, the "File download"). Go to the List view. Check the page is loaded and that no error is displayed. Check the export icon is displayed.
    • 1
    • HQ Sprint 0.2 Database

    Description

      Steps to reproduce:

      1. Login as admin.
      2. Go to Advanced features and Enable portfolios
      3. Create a database activity and add at least one field.
      4. Go to templates.
      5. Add an entry.
      6. Go to the List view.

      Expected behaviour: The export icon is not displayed because although portfolios is enabled, there is no portfolio enabled.

      Current behaviour: The following exception is displayed:

       

      Exception - Return value of mod_data\template::get_tag_export_replacement() must be of the type string, null returned
      More information about this error
      

       

       

      This is a regression caused by MDL-75146.

      Attachments

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              sarjona Sara Arjona (@sarjona)
              Raquel Ortega Raquel Ortega
              Amaia Anabitarte Amaia Anabitarte
              John Edward Pedregosa John Edward Pedregosa
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 51 minutes
                  2h 51m

                  Clockify

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