Problem/Motivation
We need those to ensure data is correct and exceptions are thrown if someone / something is trying to save an entity with incorrect / missing data. Use entity preSave methods.
Remaining tasks
- Lesson and lesson status: don't allow saving without activities set.
- Course: don't allow saving without lessons set.
User interface changes
Course Lessons and Lesson Activities fields will be required.
Issue fork lms-3479063
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
graber commentedComment #4
arunsahijpal commentedHow to reproduce this issue?
Comment #5
graber commentedThe obvious way: for example save a Course with empty lessons.
Comment #6
catchWe should be able to use entity constraints for this.
Comment #7
graber commentedComment #9
graber commented@catch, we can still implement some constraints - these will prevent edition of an entity. So far I prevented deletion and added some warnings on edition attempts. Pls check when you'll have some time.
I may add some automated tests later.
Comment #11
graber commentedComment #12
graber commentedThanks for reviewing!