diff --git a/src/Ushahidi/Modules/V5/Actions/Category/Commands/StoreCategoryCommand.php b/src/Ushahidi/Modules/V5/Actions/Category/Commands/StoreCategoryCommand.php index 37dafa5dc..bd89639bb 100644 --- a/src/Ushahidi/Modules/V5/Actions/Category/Commands/StoreCategoryCommand.php +++ b/src/Ushahidi/Modules/V5/Actions/Category/Commands/StoreCategoryCommand.php @@ -80,9 +80,9 @@ public function __construct( ?string $icon, int $priority, ?array $role, + array $translations, ?string $defaultLanguage = 'en', - array $availableanguages = [], - array $translations + array $availableanguages = [] ) { $this->parentId = $parentId; $this->tag = $tag; @@ -115,9 +115,9 @@ public static function createFromRequest(CategoryRequest $request): self $request->input('icon'), (int) $request->input('priority'), $request->input('role'), + $request->input('translations')??[], self::DEFAULT_LANUGAGE, - [], - $request->input('translations')??[] + [] ); }