diff --git a/changelog/56_UNRELEASED_2020-xx-xx.md b/changelog/56_UNRELEASED_2020-xx-xx.md index 79751772..fd99f20a 100644 --- a/changelog/56_UNRELEASED_2020-xx-xx.md +++ b/changelog/56_UNRELEASED_2020-xx-xx.md @@ -33,6 +33,9 @@ If you run grocy in a subdirectory, you need to set a new `config.php` setting ( - Fixed to only include events when the corresponding feature flag is enabled (e. g. don't show expiring products when `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING` is set to `false`) (thanks @kriddles) - Fixed that the calendar not used the full height on mobile devices +### API improvements/fixes +- The endpoint `/chores` now also includes the chore name (new field `chore_name`) (thanks @DarienFord) + ### General & other improvements/fixes - Big backend performance improvements (thanks @zebardy) - Added a button to enable the device flash light on the camera barcode scanner popup (thanks @radim-ek) diff --git a/services/ChoresService.php b/services/ChoresService.php index 521395fd..dda04d1a 100644 --- a/services/ChoresService.php +++ b/services/ChoresService.php @@ -25,7 +25,7 @@ class ChoresService extends BaseService public function GetCurrent() { - $sql = 'SELECT chores_current.*, chores.name from chores_current join chores on chores_current.chore_id = chores.id'; + $sql = 'SELECT chores_current.*, chores.name AS chore_name from chores_current join chores on chores_current.chore_id = chores.id'; return $this->getDatabaseService()->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ); }