Three fixes courtesy of user @Bonno

This commit is contained in:
James Cole committed 2016-04-24 12:24:59 +02:00
1 parent ec12238ea1
commit 99c219ed97
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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');
+1 -1
View File
@@ -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');
+1 -1
View File
@@ -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;
}