davemckain / qtiworks

**This project will be closed in early 2023!** IMS QTI 2.1 assessment delivery engine and Java development library (JQTI+). Supports the MathAssess extensions. Replacement for QTIEngine/JQTI and MathAssessEngine/JQTI. Note that this project has now ended and no further work is currently planned.
Other
67 stars 55 forks source link

Wrong attribute being used in BodyElement.java #55

Closed ccreel closed 9 years ago

ccreel commented 9 years ago
public String getLabel() {
    return getAttributes().getStringAttribute(ATTR_LANG_NAME).getComputedValue();
}

public void setLabel(final String label) {
    getAttributes().getStringAttribute(ATTR_LANG_NAME).setValue(label);
}

Should be using ATTR_LABEL_NAME

davemckain commented 9 years ago

@ccreel Thanks for noticing and reporting this. Now fixed in the master branch.