"%-of-category" field disappears from "new-item" dialog at times when it shouldn't

Description

Suppose user selects weighted categories for a gradebook and then adds categories. If a category has neither "weight items equally" or "weight by points" selected, the "%-of-category" field must be filled in to indicate how the new item should be weighted. But that element disappears from the dialog as soon as the category is selected, making it impossible for the user to fill in the value for "%-of-category". Instead, it is assigned whatever points the user assigns for that item. This can lead to the category having errors in weighting unless the user edits each one and assigns correct weighting values.

Activity

Show:

Nancy Wilkison April 19, 2011 at 1:35 PM

DEV
SmartSite@UCDavis - 2.7.2.0 - Sakai 2.7.1 - Server "ucddev1"
grbk2
gradebook2 v1.5.0-a4 on smartsite-dev.rsmart.com

TEST PROCESS -
new site CHE 118B 01-03 sq 11, weighted categories
1 - added categories - weight not defined, weight equally, weight by points, extra credit, not included and weight equally/drop 1
2 - added new item to each category above
3 - % category option is present for all except equal weight and weight by points, as I'd expect.

QA RESULTS - pass

COMMENTS -
in an extra credit category, you can't weight items by points. you can select equal weights or enter weights manually.
why can't you weight them by points?
once you define a category as extra credit, the extra credit box is greyed out and you can't change it back to normal.
any reason for this?

Jon Gorrono March 24, 2011 at 6:52 PM

this issue is related to to GRBK-593... check to see if it is incorporated by it.

Michael Wenk March 1, 2011 at 10:46 AM
Edited

Estimate: 0.5 SP

Michael Wenk January 21, 2011 at 5:34 PM

So, two problems here, first the selectedItemModel is null. So what I did is if it's null, use the item model that's sent in. If that's null, the field will disappear. Second problem is that we're only putting it there if its an item. Yet the item being sent in is a category, so I changed it to check if its a category. Need to make sure it doesn't bollix anything else up.

Michael Wenk January 21, 2011 at 5:27 PM

It appears this is happening because the selectedItemModel is null. why this is, I'm still looking into.

Duplicate

Details

Assignee

Reporter

QA Status

PASS

Components

Fix versions

Affects versions

Priority

Created October 28, 2010 at 1:06 PM
Updated April 19, 2011 at 1:36 PM
Resolved March 28, 2011 at 7:01 PM