gocodebox / gocodebox/lifterlms

Display of the lesson weighting incorrect when first loading the settings for a lesson

Open
#2,826 0 comments 0 reactions 1 assignee Assigned to @brianhogg View on GitHub
Dominant language
PHP
Stars
212
Forks
140
Avg merge
2d 14h
Merged PRs (30d)
19

Description

### Reproduction Steps

1. Create a Course
2. Add 3 Lesson in the Course Builder
3. Attach a Quiz to only one Lesson
4. Assign Weightage only to the Lesson with the quiz
5. Save, and refresh
6. Click into the Settings of the Lesson with the quiz
7. Hover over the Lesson Weight input

### Expected Behavior

Shows "100%" for weight

### Actual Behavior

Shows 33%. When you change the value it then calculates the percentage correctly, as shown in this video: https://share.cleanshot.com/72pMbvVf

![CleanShot 2024-12-09 at 8  07 32@2x](https://github.com/user-attachments/assets/77135aab-9d07-4561-bf04-8085c5214b44)

This issue has be recreated:
+ [ ] Locally
+ [ ] On a staging site
+ [ ] On a production website
+ [ ] With only LifterLMS and a default theme

HS-250975

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.