Skip to content

Firefly III: a personal finances manager

Smaller labels.

James Cole10d215724a7e
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1f7360acde..5e8c119994 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -129,7 +129,8 @@ jobs:
echo "Will now run Mago Format"
./vendor/bin/mago format
sudo chown -R runner:docker resources/lang
- echo "Will now run PHPCS"
+ echo "Will now run PHPCS twice"
+ .ci/phpcs.sh
.ci/phpcs.sh
# lint and check
@@ -137,7 +138,6 @@ jobs:
./vendor/bin/mago lint
echo "Will now run PHPstan TWICE"
.ci/phpstan.sh
- .ci/phpstan.sh
rm .env
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/app/Api/V1/Controllers/Chart/BudgetController.php b/app/Api/V1/Controllers/Chart/BudgetController.php
index 7557ac737c..8044e276d0 100644
--- a/app/Api/V1/Controllers/Chart/BudgetController.php
+++ b/app/Api/V1/Controllers/Chart/BudgetController.php
@@ -320,12 +320,14 @@ final class BudgetController extends Controller
// is always an array
$return = [];
foreach ($rows as $row) {
+
+ $label = sprintf('%s (%s - %s)', $budget->name, $row['start']->isoFormat($this->monthAndDayFormat), $row['end']->isoFormat($this->monthAndDayFormat);
+ if($row['start']->isSameDay($start) && $row['end']->isSameDay($end)) {
+ $label = $budget->name;
+ }
+
$current = [
- 'label' => sprintf(
- '%s (%s - %s)',
- $budget->name,
- $row['start']->isoFormat($this->monthAndDayFormat),
- $row['end']->isoFormat($this->monthAndDayFormat)
+ 'label' => $label,
),
'currency_id' => (string) $row['currency_id'],
'currency_name' => $row['currency_name'],