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

Calculated Simple Generate wildcards button does not display wildcards

XMLWordPrintable

    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL-48358_wip
    • Hide

      Apply the MDL-48358 issue
      Create a new calculatedsimple question
      Question name : Test MDL-48358
      Question text :

      {x}
      Answer 1 formula = {x}

      Grade 100%

      1. Click on Find the wild cards present in the correct answer formulas (step1.jpg)
      2. Click on generate 1 new set(s) of wild card(s) values (step2.jpg).The set of values is visible.
      3. Repeat with
        1. setting Display to 5 sets and
        2. setting * Generate* to 10 values
        3. and click on Generate Wild card(s) values. (step3.jpg) .The set of new values is visible ( this is OK)
      4. click on Wild card(s) value. The values disapear. This is OK.(fig 4)
        1. If you click once they will reappear.
        2. Click another time so that they disappear. Then generate other values. You won't see the values as your command on Wild card(s) value have an higher priority.
      5. add a new Wild card in answer as Answer 1 formula =

         {x}+{y}

      6. Click on *Find the wild cards {x...}

        present in the correct answer formulas' (step1.jpg). Notice that the Wild card(s) value have disappeared.

      7. Click on Generate Wild card(s) and the new values will be displayed as a new opened Wild card(s) value has been put on the form.

      Add the

       {y}

      in the question text
      Save the question and preview.
      This complete the testing.

      Show
      Apply the MDL-48358 issue Create a new calculatedsimple question Question name : Test MDL-48358 Question text : {x} Answer 1 formula = {x} Grade 100% Click on Find the wild cards present in the correct answer formulas (step1.jpg) Click on generate 1 new set(s) of wild card(s) values (step2.jpg).The set of values is visible. Repeat with setting Display to 5 sets and setting * Generate* to 10 values and click on Generate Wild card(s) values. (step3.jpg) .The set of new values is visible ( this is OK) click on Wild card(s) value . The values disapear. This is OK.(fig 4) If you click once they will reappear. Click another time so that they disappear. Then generate other values. You won't see the values as your command on Wild card(s) value have an higher priority. add a new Wild card in answer as Answer 1 formula = {x}+{y} Click on *Find the wild cards {x...} present in the correct answer formulas' (step1.jpg). Notice that the Wild card(s) value have disappeared. Click on Generate Wild card(s) and the new values will be displayed as a new opened Wild card(s) value has been put on the form. Add the {y} in the question text Save the question and preview. This complete the testing.

      This is a usability issue when creating a new Calculated Simple question type. When the Generate wildcards button is pressed the form refreshes and the wildcard header is in collapsed form and so it is not clear that the wildcards have been generated. Clicking the expand option then displays the wildcards. This might be improved by changing the question editing form to include

      $mform->closeHeaderBefore('additemhdr1');

      under the line reading

      $mform->setExpanded('additemhdr1');

      So the newly generated wildcards are visible

      As discussed at
      https://moodle.org/mod/forum/discuss.php?d=275566

      I am not certain how many Moodle versions this affects, but I suspect it is most currently supported versions.

        1. wildcard.png
          wildcard.png
          20 kB
        2. Step 4.jpg
          Step 4.jpg
          152 kB
        3. Step3.jpg
          Step3.jpg
          153 kB
        4. step2.jpg
          step2.jpg
          151 kB
        5. step1.jpg
          step1.jpg
          152 kB

            Unassigned Unassigned
            marcusgreen Marcus Green
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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