mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Fix #3898
This commit is contained in:
@@ -38,8 +38,7 @@ use Illuminate\View\View;
|
|||||||
*/
|
*/
|
||||||
class EditController extends Controller
|
class EditController extends Controller
|
||||||
{
|
{
|
||||||
/** @var RuleGroupRepositoryInterface */
|
private RuleGroupRepositoryInterface $repository;
|
||||||
private $repository;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EditController constructor.
|
* EditController constructor.
|
||||||
|
@@ -23,6 +23,7 @@ declare(strict_types=1);
|
|||||||
namespace FireflyIII\Http\Requests;
|
namespace FireflyIII\Http\Requests;
|
||||||
|
|
||||||
use FireflyIII\Models\ObjectGroup;
|
use FireflyIII\Models\ObjectGroup;
|
||||||
|
use FireflyIII\Support\Request\ConvertsDataTypes;
|
||||||
use Illuminate\Foundation\Http\FormRequest;
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -30,6 +31,7 @@ use Illuminate\Foundation\Http\FormRequest;
|
|||||||
*/
|
*/
|
||||||
class ObjectGroupFormRequest extends FormRequest
|
class ObjectGroupFormRequest extends FormRequest
|
||||||
{
|
{
|
||||||
|
use ConvertsDataTypes;
|
||||||
/**
|
/**
|
||||||
* Verify the request.
|
* Verify the request.
|
||||||
*
|
*
|
||||||
|
@@ -191,7 +191,7 @@ trait ConvertsDataTypes
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function nlString(string $field): string
|
public function nlString(string $field): string
|
||||||
{
|
{
|
||||||
return app('steam')->nlCleanString((string)($this->get($field) ?? ''));
|
return app('steam')->nlCleanString((string)($this->get($field) ?? ''));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user