mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 02:45:58 +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
|
* @return Category
|
||||||
*/
|
*/
|
||||||
public function convert(): Budget
|
public function convert(): Category
|
||||||
{
|
{
|
||||||
/** @var SingleCategoryRepositoryInterface $repository */
|
/** @var SingleCategoryRepositoryInterface $repository */
|
||||||
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');
|
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');
|
||||||
|
@@ -17,7 +17,7 @@ class CategoryName extends BasicConverter implements ConverterInterface
|
|||||||
/**
|
/**
|
||||||
* @return Category
|
* @return Category
|
||||||
*/
|
*/
|
||||||
public function convert(): Budget
|
public function convert(): Category
|
||||||
{
|
{
|
||||||
/** @var SingleCategoryRepositoryInterface $repository */
|
/** @var SingleCategoryRepositoryInterface $repository */
|
||||||
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');
|
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');
|
||||||
|
@@ -20,7 +20,7 @@ class Bill implements PostProcessorInterface
|
|||||||
{
|
{
|
||||||
|
|
||||||
// get bill id.
|
// 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;
|
$this->data['bill-id'] = $this->data['bill']->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user