diff options
author | Dominic Guss | 2017-11-02 22:24:20 +0000 |
---|---|---|
committer | Donald Dunne | 2017-11-15 19:40:01 +0000 |
commit | 8e082af162e65f086b4b0cea25e7d62f922a7abe (patch) | |
tree | a3ccd8a2ce628086bc32281656b9a8a7dab5a29f /plugins | |
parent | 2f61a5124703f29ff67d9ef815d7112a840e6922 (diff) | |
download | org.eclipse.osee-8e082af162e65f086b4b0cea25e7d62f922a7abe.tar.gz org.eclipse.osee-8e082af162e65f086b4b0cea25e7d62f922a7abe.tar.xz org.eclipse.osee-8e082af162e65f086b4b0cea25e7d62f922a7abe.zip |
bug[ats_TW3540]: Coverage: Fix 'text not found'
Signed-off-by: Dominic Guss <Dominic.Guss@boeing.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/org.eclipse.osee.web.ui/src/dispo/js/CoverageFactory.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.web.ui/src/dispo/js/CoverageFactory.js b/plugins/org.eclipse.osee.web.ui/src/dispo/js/CoverageFactory.js index 32be4f5ced4..4afc508e04e 100644 --- a/plugins/org.eclipse.osee.web.ui/src/dispo/js/CoverageFactory.js +++ b/plugins/org.eclipse.osee.web.ui/src/dispo/js/CoverageFactory.js @@ -24,11 +24,11 @@ app.factory('CoverageFactory', function() { CoverageFactory.setTextForNonDefaultAnnotations = function(annotations, discrepancies) { for(var i = 0; i < annotations.length; i++) { if(!annotations[i].isDefault) { - var covered = annotations[i].idsOfCoveredDiscrepancies[0] + var coveredId = annotations[i].idsOfCoveredDiscrepancies[0] - var text = discrepancies[covered]; - if(!text == null) - return annotations[i].customerNotes = text; + var discrepancyAddress = discrepancies[coveredId]; + if(discrepancyAddress !== null) + return annotations[i].customerNotes; else return annotations[i].customerNotes = "no text found"; } |