Permalink
Browse files

Merge pull request #109 from atmire/DS-851

[DS-851] When a "qualdrop_value" is set to "required", submit form always fails
  • Loading branch information...
2 parents dac7780 + cde46c1 commit deac1b0a8a3f0df039a569d3620dbf29b6c06b5f @tdonohue tdonohue committed Oct 31, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java
@@ -306,9 +306,15 @@ else if (buttonPressed.equals("submit_" + fieldName + "_delete"))
{
continue;
}
-
+
+ String qualifier = inputs[i].getQualifier();
+ if (qualifier == null
+ && inputs[i].getInputType().equals("qualdrop_value"))
+ {
+ qualifier = Item.ANY;
+ }
DCValue[] values = item.getMetadata(inputs[i].getSchema(),
- inputs[i].getElement(), inputs[i].getQualifier(), Item.ANY);
+ inputs[i].getElement(), qualifier, Item.ANY);
if ((inputs[i].isRequired() && values.length == 0) &&
inputs[i].isVisible(subInfo.isInWorkflow() ? DCInput.WORKFLOW_SCOPE : DCInput.SUBMISSION_SCOPE))

0 comments on commit deac1b0

Please sign in to comment.