Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Fix issue with tags that were not recognized but created instead
Browse files Browse the repository at this point in the history
  • Loading branch information
godbout committed Jan 7, 2019
1 parent c1ad22c commit ff99a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Toggl.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private function getItems($needle, array $haystack = [])
return isset($item['server_deleted_at']) === false;
});

return array_map(function ($item) {
return array_map(function ($item) use ($needle) {
return [
'name' => $item['name'],
'id' => ($needle === 'tags') ? $item['name'] : $item['id'],
Expand Down

0 comments on commit ff99a12

Please sign in to comment.