fix bb matching questions with smaller right side
test plan: * import the packages from the course referenced in the ticket * should import the matching questions successfully closes #ADMIN-1050 Change-Id: I9416403be5435c03ff6b3d1fc134677a94fd213d Reviewed-on: https://gerrit.instructure.com/150446 Tested-by: Jenkins Reviewed-by: Carl Kibler <ckibler@instructure.com> Reviewed-by: Jeremy Stanley <jeremy@instructure.com> QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com> Product-Review: James Williams <jamesw@instructure.com>
This commit is contained in:
parent
37bd4bdcdd
commit
25cc4f9907
|
@ -217,7 +217,7 @@ class AssociateInteraction < AssessmentItemConverter
|
|||
# the left side's choiceInteraction corresponds to the index of the matched right-side item.
|
||||
left = @doc.css('div.RESPONSE_BLOCK choiceInteraction').size
|
||||
right = @doc.css('div.RIGHT_MATCH_BLOCK div').size
|
||||
return false unless left > 0 && right >= left
|
||||
return unless left > 0 && right > 0
|
||||
return @doc.css('div.RESPONSE_BLOCK div').size == left &&
|
||||
@doc.css('responseProcessing responseCondition match').size == left &&
|
||||
@doc.css('div.RESPONSE_BLOCK choiceInteraction simpleChoice').size == left * right
|
||||
|
|
Loading…
Reference in New Issue