Comments (2)
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.
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)
- Type parameter missing in save() HOT 5
- Upgrade plugin to Moodle 3.11 HOT 1
- Move away from YUI
- Fix codechecker complaints about PHPUnit naming HOT 1
- Type parameter missing in save - please add to v3.9 HOT 1
- Use Bootstrap styles in password prompt popup HOT 1
- Fix Behat scenario "A student attempts to access the page activity with the activity link, but cancels the popup" HOT 1
- Password for the mobile Moodle app HOT 1
- QR codes or bar codes instead of passwords HOT 2
- Enhancing Plugin Security and Authorization: Important Suggestions for Consideration HOT 2
- Get rid of the 'show more' link in Moodle 4.3 HOT 1
- not working after upgrade to moodle 3.4.1 HOT 1
- Course Section Protection HOT 7
- Password Restriction HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-availability_password.