Giter VIP home page Giter VIP logo

moodle-qtype_multianswerwiris's People

Contributors

dcanet-at-wiris avatar gasparwiris avatar mcagigas-at-wiris avatar mvila-at-wiris avatar ptorrent-at-wiris avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

moodle-qtype_multianswerwiris's Issues

Method signature compatibility

When previewing the question on Moodle 3.1, I am seeing debugging warning:

Warning: Declaration of
qtype_multianswerwiris_helper_renderer::subquestion(question_attempt $qa, question_display_options $options, $index, $subq)
should be compatible with
qtype_multianswer_renderer::subquestion(question_attempt $qa, question_display_options $options, $index, question_graded_automatically $subq)
in .../question/type/multianswerwiris/renderer.php on line 27

No formula editor displayed to students

The plugin description reads

On the student's side, they will be able to introduce their answers by using a WYSIWYG formula editor and, if the teacher so specifies, they will have access to a WIRIS cas session to make some calculations.

I tried to use a SHORTANSWER subquestion with a variable value as the right answer. But to the student, there is no wiris input element displayed. Only the common HTML input field is displayed.

Error Undefined property $category in Moodle 4.0

An error is appearing after doing the following steps in Moodle 4.0:

  • Create a course
  • Go to Course -> Question Bank
  • Select "Import"
  • Select Moodle XML format
  • Import the following file attached Test file This file is located in multianswerwiris/tests/fixtures/testquestion.moodle.xml and is used for the Behat tests of the plugin.
  • After this, you should see "Parsing questions from import file.". Click on Continue.
  • Now Edit the created question.
  • In the edit view, just click on Save Changes without making any change.
  • The following error appears:

image

This may be because in multianswerwiris/questiontype.php line 151, $authorizedquestion->category is unset. There is a variable that may contain the category which is $authorizedquestion->questioncategoryid but this one can also be unset. A possible solution can be something like this:

if (isset($authorizedquestion->category)) {
            $question->category = $authorizedquestion->category;
        } elseif (isset($authorizedquestion->questioncategoryid)) {
            $question->category = $authorizedquestion->questioncategoryid;
     }

... but I'm not sure in which escenarios this may not work.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.