Skip to content

Commit

Permalink
Closes #5094 - 'fields' option added to e107Export method. Accepts co…
Browse files Browse the repository at this point in the history
…mma separated list.
  • Loading branch information
CaMer0n committed Nov 1, 2023
1 parent 100e28e commit 09eddd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e107_handlers/xml_class.php
Expand Up @@ -1067,7 +1067,8 @@ public function e107Export($xmlprefs, $tables, $plugPrefs=null, $themePrefs=null
$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<dbTable name=\"".$eTable."\">\n";
// $count = 1;
while($row = e107::getDb()->fetch())
Expand Down

0 comments on commit 09eddd8

Please sign in to comment.