Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-42030

Quiz created through Lessons has no date picker for due/accept until - console error

    Details

    • Test Plan:
      Hide
      1. Click on Lessons
      2. Click Add Content -> Link to a test or Quiz
      3. Click Create new quiz using Tests and Quizzes
      4. Click Add
      5. Give the quiz a name and click Create
      6. Add a question
      7. Click Settings and set a due date

      Expected behavior: due date and accept until should have calendar icons to pick the date/time

      Show
      Click on Lessons Click Add Content -> Link to a test or Quiz Click Create new quiz using Tests and Quizzes Click Add Give the quiz a name and click Create Add a question Click Settings and set a due date Expected behavior: due date and accept until should have calendar icons to pick the date/time

      Description

      When creating a new quiz from inside Lessons, the date picker is not available for due / accept until and there is a browser console error. The date picker works fine if creating a quiz from Tests & Quizzes.

      lang-datepicker.js:1671 Uncaught ReferenceError: moment is not defined
      at String.<anonymous> (lang-datepicker.js:1671)
      at Function.each (jquery.js:376)
      at setHiddenFields (lang-datepicker.js:1647)
      at init (lang-datepicker.js:1781)
      at Plugin.init (lang-datepicker.js:1826)
      at new Plugin (lang-datepicker.js:1495)
      at HTMLInputElement.<anonymous> (lang-datepicker.js:1834)
      at Function.each (jquery.js:370)
      at a.fn.init.each (jquery.js:137)
      at a.fn.init.$.fn.<computed> [as sakaiDateTimePicker] (lang-datepicker.js:1832)
      (anonymous) @ lang-datepicker.js:1671
      each @ jquery.js:376
      setHiddenFields @ lang-datepicker.js:1647
      init @ lang-datepicker.js:1781
      Plugin.init @ lang-datepicker.js:1826
      Plugin @ lang-datepicker.js:1495
      (anonymous) @ lang-datepicker.js:1834
      each @ jquery.js:370
      each @ jquery.js:137
      $.fn.<computed> @ lang-datepicker.js:1832
      localDatePicker @ lang-datepicker.js:1843
      (anonymous) @ editAssessment:154
      i @ jquery.js:3232
      fireWith @ jquery.js:3362
      ready @ jquery.js:3582
      K @ jquery.js:3617

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  a.fish@lancaster.ac.uk Adrian Fish
                  Reporter:
                  agschmidt Andrea Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code