Details
-
Bug
-
Resolution: Timed out
-
Low
-
None
-
6.2, 7.0.0
-
6.02
-
Severity 3 - Minor
-
-
Description
I am currently generalizing the usage of SingleSelect and MultiSelect in some customer plugins, where I was using only <select />;
I have experienced some ClassCastException with all SingleSelect fields when I tries to retrieve the parameter.
After some check in AUI Sources, I found that in SelectModel.js, the attribute "multilple" was applied explicitly for SingleSelect fields.
if (this.type === "single") { this.$element.attr("multiple", "multiple"); }
It causes that all Single Select value are passed systematically as a List of String instead of a simple String.
For all SingleSelect for which I did an explicit call in my sources, I have added an explicit remove of this attribute.
AJS.$($mySingleSelect.options.element).removeAttr("multiple");
But when I the SingleSelect is built by initSingleUserPickers.js depending on js-default-user-picker class, there is no easy way to correct it.
I experience this behavior with JIRA 6.2.7, but it seems to be more older and always present with JIRA 7.0.0.
Questions :
- Is this add of the multiple attribute is a bug or wanted ?
- In such case, for which reason ?
Attachments
Issue Links
- links to