diff --git a/src/Ushahidi/Modules/V5/Actions/Category/Commands/UpdateCategoryCommand.php b/src/Ushahidi/Modules/V5/Actions/Category/Commands/UpdateCategoryCommand.php index 8198e643a..f52c80ec2 100644 --- a/src/Ushahidi/Modules/V5/Actions/Category/Commands/UpdateCategoryCommand.php +++ b/src/Ushahidi/Modules/V5/Actions/Category/Commands/UpdateCategoryCommand.php @@ -85,9 +85,9 @@ public function __construct( ?string $icon, ?int $priority, ?array $role, + array $translations, ?string $defaultLanguage, - ?array $availableLanguages = [], - array $translations + ?array $availableLanguages = [] ) { $this->categoryId = $categoryId; $this->parentId = $parentId; @@ -117,9 +117,9 @@ public static function fromRequest(int $id, CategoryRequest $request, Category $ $request->has('icon')?$request->input('icon'):$current_category->icon, $request->has('priority')?$request->input('priority'):$current_category->priority, $request->has('role')?$request->input('role'):$current_category->role, + $request->input('translations')??[], self::DEFAULT_LANUGAGE, - [], - $request->input('translations')??[] + [] ); }