Bug in Flashcards version 1.7.5 ? Is the pipe symbol ignored now?

Hi,

We are experiencing an issue with Flashcards version 1.7.5 on Wordpress. The issue is not there in version 1.6.4
The issue is that the pipe symbol | that is used to separate alternative answers is no longer working. It appears to be ignored, and as a result, we cannot use multiple alternate answers any longer.

I made a simple exercise to reproduce the issue. A new Flashcard exercise with just one question and two alternate answers, separated by a pipe symbol.

Can you please look into this?

Update: This version accepts the forward slash / as the separator for alternative answers, instead of the pipe symbol |.

Kind regards,
Jeroen.

BV52's picture

Hi Jeroen,

The pipe symbol has been replaced by the slash to separate answers in Flashcards. Please chec the release overview for details: https://h5p.org/post-hub-releases

-BV

Hi BV,

Thanks for pointing that out. I missed that note.
I assume it also means that I must replace | with / when I update content created with an older version of the Flashcards library.
Is that correct? That would be a lot of work. Is there an easy way to do that?

BV52's picture

Hi Jeroen,

No, you don't need to. If you update a content it will automatically use the libraries once you save it. The dev team got you covered, the | will automatically be replaced with / (at least that is what happened when I tested it). Let us know if this does not happen automatically so that I can report it. 

-BV

Hi BV,

When I edit and update one of the older exercises, it is indeed automatically changed from | to /, so that works.
In the edit window it does however still shows the instruction: "Use a pipe symbol | to split alternative solutions. Use \| if a solution should contain a |.| "
That certainly did not help me ;-)


BV52's picture

Hi Jeroen,

Once you save the content and edit it again the instruction should now show a /. Additionally, if you go to Site administration -> Plugins -> H5P -> H5P Libraries and click on the button "updgrade library content" under actions for Flashcards it will update the libraries of all the Flashcards that uses the old version.

-BV

otacke's picture

@BV: It seems that nobody updated the translation files ...

otacke's picture

Here's the pull request to fix this: https://github.com/h5p/h5p-flashcards/pull/115.

BV52's picture
otacke's picture

Thanks! I left a message on the original ticket.