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

Curly brackets {} in embedded answers question type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.6
    • Questions
    • None
    • MySQl 4.1.20, PHP 4.3.0
    • MySQL
    • MOODLE_16_STABLE

      There are cases of incorrect work of Embedded Answer question type when using {} in the text of the question. For example this code will be dramaticaly reduced when saving the question.
      -----start the text of the question
      ???????? ?????????? ????????? ??? ?????????? ?????????? ???????: ???????? ??? ???????? ??????? ??????? N ?? 2. ????????? ??????? ? ?????? ?????, ??? ?????? ????????.

      1. define N 100

      void main ()

      {

      {:SHORTANSWER:=int arr [N];}

      int i;

      for(i=0;i<N;i++)

      arr[i]=i*2;

      }
      ----end the text of the question

        1. backup-prod_quiz_with_error.zip
          23 kB
        2. backup-quiz-error.zip
          80 kB
        3. embed_error.htm
          15 kB
        4. screenshot-1.jpg
          screenshot-1.jpg
          18 kB
        5. screenshot-2.jpg
          screenshot-2.jpg
          9 kB
        6. screenshot-3.jpg
          screenshot-3.jpg
          11 kB
        7. screenshot-4.jpg
          screenshot-4.jpg
          13 kB

            timhunt Tim Hunt
            oa_sychev Oleg Sychev
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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