mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 10:39:28 +00:00
Three fixes courtesy of user @Bonno
This commit is contained in:
@@ -16,7 +16,7 @@ class CategoryId extends BasicConverter implements ConverterInterface
|
||||
/**
|
||||
* @return Category
|
||||
*/
|
||||
public function convert(): Budget
|
||||
public function convert(): Category
|
||||
{
|
||||
/** @var SingleCategoryRepositoryInterface $repository */
|
||||
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');
|
||||
|
@@ -17,7 +17,7 @@ class CategoryName extends BasicConverter implements ConverterInterface
|
||||
/**
|
||||
* @return Category
|
||||
*/
|
||||
public function convert(): Budget
|
||||
public function convert(): Category
|
||||
{
|
||||
/** @var SingleCategoryRepositoryInterface $repository */
|
||||
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');
|
||||
|
@@ -20,7 +20,7 @@ class Bill implements PostProcessorInterface
|
||||
{
|
||||
|
||||
// get bill id.
|
||||
if (!is_null($this->data['bill'])) {
|
||||
if (!is_null($this->data['bill']) && !is_null($this->data['bill']->id)) {
|
||||
$this->data['bill-id'] = $this->data['bill']->id;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user