Add branding support to departments and related routes

This commit introduces changes to include branding information in departments. Updates were made to routes, forms, and objects to handle branding IDs and enforce validation. Additionally, a method call was added to track object changes when branding is updated.
This commit is contained in:
Jepp9350
2025-03-26 11:39:30 +01:00
parent 4deef9dc09
commit 87251ee445
5 changed files with 7 additions and 2 deletions
@@ -54,7 +54,8 @@ class departmentsRoute
'economic_department_id' => (int)$department['economic_department_id'],
'created_at' => (string)$department['created_at'],
'updated_at' => (string)$department['updated_at'],
'dimension' => (int)$department['dimension']
'dimension' => (int)$department['dimension'],
'branding' => (int)$department['branding'],
];
// If the user has the permission to view the slack webhook, add it to the response
if ($user->hasPermission('view_slack_webhook')) {