Skip to content

Commit

Permalink
fixed: column "billable" is not correctly imported
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Nov 3, 2023
1 parent 02abaf9 commit 05faf47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Version 2.5.1 (03.11.2023)

Compatibility: requires minimum Kimai 2.1.0

- Fixed: Column "Billable" is not correctly imported

## Version 2.5.0

Compatibility: requires minimum Kimai 2.1.0
Expand Down
4 changes: 1 addition & 3 deletions Importer/AbstractTimesheetImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ public function importRow(Duration $durationParser, ImportData $data, ImportRow
$timesheet = $this->timesheetService->createNewTimesheet($user);
$this->timesheetService->prepareNewTimesheet($timesheet);

if (\is_bool($record['Billable'])) {
$timesheet->setBillable($this->convertBoolean($record['Billable']));
}
$timesheet->setBillable($this->convertBoolean($record['Billable']));
$timesheet->setActivity($activity);
$timesheet->setProject($project);
$timesheet->setBegin($begin);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Import data from CSV files via Web UI",
"homepage": "https://www.kimai.org/store/keleo-importer-bundle.html",
"type": "kimai-plugin",
"version": "2.5.0",
"version": "2.5.1",
"keywords": [
"kimai",
"kimai-plugin"
Expand Down

0 comments on commit 05faf47

Please sign in to comment.