davidherney / moodle-format_onetopic

Course format Onetopic to LMS Moodle
GNU General Public License v3.0
19 stars 45 forks source link

Deprecated template for availability section - Moodle 4.1.5 #162

Open davidCnam opened 1 year ago

davidCnam commented 1 year ago

The restrictions mention don't appear on the page when the onetopic format is used. This issue i due to a depracation which is mentionned at this link : https://tracker.moodle.org/browse/MDL-74160 The current tag use in the mustache file "\course\format\onetopic\templates\local\content\section\content.mustache" is : {{#availability}} {{$ format_onetopic/courseformat/content/cm/availabilityinline }} {{> format_onetopic/courseformat/content/cm/availabilityinline }} {{/ format_onetopic/courseformat/content/cm/availabilityinline }} {{/availability}}

So, to correct this issue change the tag with : {{#availability}} {{$ core_courseformat/local/content/section/availability }} {{> core_courseformat/local/content/section/availability }} {{/ core_courseformat/local/content/section/availability }} {{/availability}}

davidherney commented 6 months ago

Hi @davidCnam

Please send me more information to reproduce what you say or validate if it was corrected in the latest versions.

Saludos