General developer forum

Mobile app qtype addon problem

 
Picture of Marcus Green
Mobile app qtype addon problem
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developersGroup Testers

I have been working on an upgrade to my gapfill question type and am having a problem with the mobile addon. I get the following browser console error


mm.bundle.js:4173 9/29/2017 11:15:37 PM : Error: [$compile:multidir] Multiple directives [mmaQtypeGapfill, mmaQtypeGapfill] asking for template on: <div class="mm-question-container" mma-qtype-gapfill="">


And underneath this is a link to a web page with the following text

Error: $compile:multidir

Multiple Directive Resource Contention
Multiple directives [mmaQtypeGapfill, mmaQtypeGapfill] asking for template on: <div class="mm-question-container" mma-qtype-gapfill="">
I have looked very carefully at my code and it seems to do the same as it used to which is the same as the core question types.

Any clues?

 
Average of ratings: -
Picture of Marcus Green
Re: Mobile app qtype addon problem
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developersGroup Testers

Part of the reason I was doing this testing was because the ticks and crosses that appear once a question is complete were not showing up. Now it seems they are not showing up for core questions either with moodle33 but they do with moodle3.1 and I am starting to wonder if this font awesome issue. The method that calls it is feedback_image($fraction);


 
Average of ratings: -
Picture of Marcus Green
Re: Mobile app qtype addon problem
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developersGroup Testers

Hmm, force the theme back to clean and everything works as expected including with the core question types, perhaps the lack of the tick/cross feedback has nothing to do with my question type and is liked with boost/font awesome...

 
Average of ratings: -