Skip to content

Add currentValue to Parameter #66

@matthiasohst

Description

@matthiasohst

In order to set the allowed values independent of the current value used in the returned link, the Parameter class should have a field currentValue which is returned in the get method.

For example, if the field currentValue is added and the line

return allowedValues.isEmpty() ? defaultValue : allowedValues.get(0);

is replaced by

if (currentValue != null) {
    return currentValue
} else {
    return allowedValues.isEmpty() ? defaultValue : allowedValues.get(0);
}

then everything should be working as before, with the option to provide a currentValue different from any of the allowedValues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions