Skip to content

Commit

Permalink
Export no longer outputs null if there is no observation photo.
Browse files Browse the repository at this point in the history
  • Loading branch information
dryror committed Jun 22, 2014
1 parent 5a16c77 commit 5bf54d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/exportModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,12 @@ function makeCSV() {
generalSurveyTxt += dq + comments + dq + c;

generalSurveyTxt += dq + results[transect][plot][observation].ground_cover + dq + c;
generalSurveyTxt += dq + results[transect][plot][observation].observation_photo + dq + nl;
var observationPhoto = results[transect][plot][observation].observation_photo;
if (observationPhoto != null) {
generalSurveyTxt += dq + observationPhoto + dq + nl;
} else {
generalSurveyTxt += nl;
}
}
}
}
Expand Down

0 comments on commit 5bf54d7

Please sign in to comment.