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

Bug in enable_save_content_state #168

Open
Jarvil opened this issue Aug 7, 2017 · 8 comments
Open

Bug in enable_save_content_state #168

Jarvil opened this issue Aug 7, 2017 · 8 comments

Comments

@Jarvil
Copy link
Contributor

Jarvil commented Aug 7, 2017

Hello,

I'm using mod_hvp 1.4 (2017060600) & Moodle 3.3.1+ (Build: 20170727).

When I set "Save content state mod_hvp | enable_save_content_state" to "on" and
edit f.ex. course presentation and add an image to it and press "save and display" I get an error message;

"Data reset"

"This content has changed since you last used it.

You'll be starting over."

This happens in other H5P-libraries too so the seems to be an bug in that setting because it suggests that everytime you edit something.

@Jarvil
Copy link
Contributor Author

Jarvil commented Aug 7, 2017

Tested this also in Moodle 3.1.6 (Build: 20170508) and I get the same error.

@timothyylim
Copy link
Contributor

Hi @Jarvil,

This is by design. If the content changes the states saved might be invalid. For instance if you were on slide 6 and slide 6(or before 6) is deleted, then your state doesn't make any sense anymore.

It might be that a checkbox is added so that the author may choose not to delete the states when editing content.

Does this help?

@Jarvil
Copy link
Contributor Author

Jarvil commented Aug 14, 2017

Hello,

Have you tried it yourself in the real life? It is not really useful when it states "data reset start from beginning" even if you don't edit anything or just change a one thing.

@timothyylim
Copy link
Contributor

Hi @Jarvil, what do you mean? It shouldn't show unless you have changed anything, if you've changed one thing I think it still makes sense for a warning to be shown.

@Jarvil
Copy link
Contributor Author

Jarvil commented Aug 16, 2017

Hello,

The message is displayed even if I don't edit anything. When I just open the activity and save and return to the course.

@timothyylim
Copy link
Contributor

Ok, that definitely sounds like a bug. I've created a ticket for it to be reviewed in the next release:

https://h5ptechnology.atlassian.net/browse/HFP-1383

Thanks for reporting the bug!

@falcon-git
Copy link
Member

It is not a bug, it is by design. I've updated the Jira issue.

@falcon-git
Copy link
Member

I can see why the current behavior is problematic in many cases. The organization that designed and funded this feature wanted the current behavior, and it seems most H5P users don't have "save content state" enabled. We haven't been able to prioritize improving this behavior yet, unfortunately.

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

3 participants