Giter Club home page Giter Club logo

Comments (2)

abias avatar abias commented on July 30, 2024 1

Hi @smokwawelskine and @alina-kiz ,

thank you for highlighting this issue.

After some debugging, I found out that the lesson activity has a "Password protected lesson" form field and the external tool activity has a password form field as well. Now, when the activity settings are shown, JavaScript code is run by Moodle core which hides particular form fields based on some conditions.

Unfortunately, the password field of this plugin just got the internal name "password" when it was implemented. Against this background, the Moodle core code found this field and hid it even if it wanted to hide something completely different on the same page.

I will fix this by changing the name of the internal name and will publish a new release of the plugin soon.

Cheers,
Alex

from moodle-availability_password.

alina-kiz avatar alina-kiz commented on July 30, 2024

Hi, I think, I have the same problem.
I create an External tool activity and set a Restriction by password, then save and return to course.
When I go to change the Restrictions, I can't expand the restriction section.
By inspecting the HTML can you see that div with id="fitem_id_availabilityconditionsjson" gets a
style="display:none;" hidden = "hidden"

I have it try on Moodle 3.9.19+ (Build: 20230210) and Moodle 4.1.1+ (Build: 20230210)

from moodle-availability_password.

Related Issues (15)

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.