From 09eddd89110dc4c150a2e7085b9790077539616d Mon Sep 17 00:00:00 2001 From: camer0n Date: Wed, 1 Nov 2023 14:27:25 -0700 Subject: [PATCH] Closes #5094 - 'fields' option added to e107Export method. Accepts comma separated list. --- e107_handlers/xml_class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_handlers/xml_class.php b/e107_handlers/xml_class.php index 10a5d57f1..a5deb0a62 100644 --- a/e107_handlers/xml_class.php +++ b/e107_handlers/xml_class.php @@ -1067,7 +1067,8 @@ class xmlClass $eQry = " 1 ORDER BY ".$primaryKey." ASC"; } - e107::getDb()->select($eTable, "*", $eQry); + $fields = !empty($options['fields']) ? $options['fields'] : '*'; + e107::getDb()->select($eTable, $fields, $eQry); $text .= "\t\n"; // $count = 1; while($row = e107::getDb()->fetch())