Skip to content

Commit

Permalink
commas on data will be replaced by spaces when exporting to csv
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Jul 19, 2024
1 parent c7675bc commit 8cb9295
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions endpoints/subscriptions/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
$subscriptionDetails = array(
'Name' => str_replace(',', '', $row['name']),
'Name' => str_replace(',', ' ', $row['name']),
'Next Payment' => $row['next_payment'],
'Categpry' => str_replace(',', '', $categories[$row['category_id']]['name']),
'Payment Method' => str_replace(',', '', $payment_methods[$row['payment_method_id']]['name']),
'Paid By' => str_replace(',', '', $members[$row['payer_user_id']]['name']),
'Categpry' => str_replace(',', ' ', $categories[$row['category_id']]['name']),
'Payment Method' => str_replace(',', ' ', $payment_methods[$row['payment_method_id']]['name']),
'Paid By' => str_replace(',', ' ', $members[$row['payer_user_id']]['name']),
'Price' => $currencies[$row['currency_id']]['symbol'] . $row['price'],
'Notes' => str_replace(',', '', $row['notes']),
'Notes' => str_replace(',', ' ', $row['notes']),
'URL' => $row['url'],
'State' => $row['inactive'] ? 'Disabled' : 'Enabled',
'Notifications' => $row['notify'] ? 'Enabled' : 'Disabled',
Expand Down

0 comments on commit 8cb9295

Please sign in to comment.