Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix https://github.com/firefly-iii/firefly-iii/issues/9717
James Colef7b14b01bc5f
diff --git a/app/Api/V1/Controllers/Autocomplete/AccountController.php b/app/Api/V1/Controllers/Autocomplete/AccountController.phpindex 6074a705ef..70ded8ad44 100644--- a/app/Api/V1/Controllers/Autocomplete/AccountController.php+++ b/app/Api/V1/Controllers/Autocomplete/AccountController.php@@ -41,7 +41,8 @@ use Illuminate\Http\JsonResponse;class AccountController extends Controller{use AccountFilter;- protected array $accepts = ['application/json'];+ // this array only exists to test if the constructor will use it properly.+ protected array $accepts = ['application/json', 'application/vnd.api+json'];/** @var array<int, string> */private array $balanceTypes;diff --git a/app/Api/V1/Controllers/Controller.php b/app/Api/V1/Controllers/Controller.phpindex 8942d723e6..b1407f6b6d 100644--- a/app/Api/V1/Controllers/Controller.php+++ b/app/Api/V1/Controllers/Controller.php@@ -67,7 +67,7 @@ abstract class Controller extends BaseControllerprotected array $allowedSort;protected ParameterBag $parameters;protected bool $convertToNative = false;- protected array $accepts = ['application/json'];+ protected array $accepts = ['application/json','application/vnd.api+json'];protected TransactionCurrency $nativeCurrency;/**