Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random-label not adding label #419

Open
fxpar opened this issue Nov 2, 2022 · 1 comment
Open

Random-label not adding label #419

fxpar opened this issue Nov 2, 2022 · 1 comment

Comments

@fxpar
Copy link
Contributor

fxpar commented Nov 2, 2022

When typing the commande line for random-label, no error message, but nothing visible in the course.

  • moosh version:moosh_1.5-1_all.deb
  • moodle version: 4.0.4+
    • database:mysql (8.0.31-0ubuntu0.20.04.1)
  • php version:7.4.3
  • operating system: ubuntu wsl also tested on windows

Actual behaviour

moosh -n random-label 2
no error message
No label is created in the course id 2 (after page update, going to edition mode and back)

Actual behaviour

moosh -n random-label -i ' uniquetext ' 2
or
moosh -n random-label -i " uniquetext " 2
no error message
No label is created in the course id 2 (after page update, going to edition mode and back)

Expected behaviour

A label should be created in course id number 2

Steps to reproduce

@fxpar
Copy link
Contributor Author

fxpar commented Nov 11, 2022

Finally works in Moodle 3.9... Added proper command for label creation with pull request #420

Add a label in section 3 of course 2 without completion
moosh label-create --section 3 --completion 0 -text "my <b>text</b>" 2

Double quotes inside html need to be escaped with a slash before
moosh label-create --section 3 --completion 0 -text "my <p style=\"color:green\">text</p>" 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant