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

Templates in basewidget.js have been deleted

    XMLWordPrintable

Details

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-79613-master
    • Hide
      1. Install block_stash – https://github.com/abgreeve/moodle-block_stash.git

        git clone https://github.com/abgreeve/moodle-block_stash.git blocks/stash

      2. Install filter_shortcodes - https://github.com/branchup/moodle-filter_shortcodes

        git clone https://github.com/branchup/moodle-filter_shortcodes filter/shortcodes

      3. In a course add the stash block
      4. Make sure you have students in your course
      5. Click on "Setup" in the block
      6. Add two items and add them to a course
        1. Click the "add an item" button
        2. Add a title and picture and click "Save and next"
        3. Add a location name and click "Save and next"
        4. Copy the short code snippet
        5. Go back to the course page
        6. Create a page or label (has a new name now)
        7. In an editor, paste in the snippet (no need for source mode, just paste into the editor directly)
        8. Save the activity
      7. Log in as one of the students
      8. Collect the items using the buttons
      9. Log in as another of the students
      10. Collect the items again
      11. As a student click on "Trade center" in the stash block
      12. Click the "Select an item" search element
      13. Verify you can use this search drop down to find items and that no errors are shown.
      Show
      Install block_stash – https://github.com/abgreeve/moodle-block_stash.git git clone https: //github.com/abgreeve/moodle-block_stash.git blocks/stash Install filter_shortcodes - https://github.com/branchup/moodle-filter_shortcodes git clone https: //github.com/branchup/moodle-filter_shortcodes filter/shortcodes In a course add the stash block Make sure you have students in your course Click on "Setup" in the block Add two items and add them to a course Click the "add an item" button Add a title and picture and click "Save and next" Add a location name and click "Save and next" Copy the short code snippet Go back to the course page Create a page or label (has a new name now) In an editor, paste in the snippet (no need for source mode, just paste into the editor directly) Save the activity Log in as one of the students Collect the items using the buttons Log in as another of the students Collect the items again As a student click on "Trade center" in the stash block Click the "Select an item" search element Verify you can use this search drop down to find items and that no errors are shown.
    • 1
    • Team Alpha - Sprint 3 I3-2023

    Description

      For third party developers that are using core_grades/searchwidget/basewidget the js errors with an unresolved promise. This is because all of the templates in basewidget.js have been deleted. See this line for an example. This widget is deprecated so should continue to work during the deprecation time period. Currently, that isn't the case.

      The file basewidget.js should either be updated to the new equivalent template locations or the templates should restored in the existing (now deleted) folder.

      Attachments

        Issue Links

          Activity

            People

              jaked Jake Dallimore
              abgreeve Adrian Greeve
              Ilya Tregubov Ilya Tregubov
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Kim Jared Lucas Kim Jared Lucas
              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
                  2h

                  Clockify

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