summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-01-04 10:15:27 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-01-04 10:15:27 +0000
commit06cff3ff5e2a312b12d71bc5115cd6440631ae59 (patch)
treebfae5b2ef5d1e80eac68dc4d3549b6511608be4a /app
parent639e298445d070d21e90ff0eabcdff0c2184aa02 (diff)
downloadwebtrees-06cff3ff5e2a312b12d71bc5115cd6440631ae59.tar.gz
webtrees-06cff3ff5e2a312b12d71bc5115cd6440631ae59.tar.bz2
webtrees-06cff3ff5e2a312b12d71bc5115cd6440631ae59.zip
Fix: #2092 - undefined attribute when downloading GEDCOM file
Diffstat (limited to 'app')
-rw-r--r--app/Functions/FunctionsExport.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Functions/FunctionsExport.php b/app/Functions/FunctionsExport.php
index 43fe2ad698..00dbffdd07 100644
--- a/app/Functions/FunctionsExport.php
+++ b/app/Functions/FunctionsExport.php
@@ -225,7 +225,7 @@ class FunctionsExport
->where('o_file', '=', $tree->id())
->whereNotIn('o_type', ['HEAD', 'TRLR'])
->orderBy('o_id')
- ->select(['o_id AS xref', 'o_gedcom AS gedcom'])
+ ->select(['o_id AS xref', 'o_gedcom AS gedcom', 'o_type AS type'])
->get();
foreach ($rows as $row) {