Skip to content

Commit

Permalink
Fix for excluding _isOptional models from the locking crtieria. #1486.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielghost committed Mar 24, 2017
1 parent 31b2322 commit 020eac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/js/models/adaptModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ define(function (require) {
try {
var model = Adapt.findById(id);

if (!model.get("_isAvailable")) continue;
if (!model.get("_isAvailable") || model.get("_isOptional")) continue;
if (!model.get("_isComplete")) return true;
}
catch (e) {
Expand Down

0 comments on commit 020eac0

Please sign in to comment.