diff --git a/web/modules/custom/hoeringsportal_content_access/src/Helper.php b/web/modules/custom/hoeringsportal_content_access/src/Helper.php index eb140e3b..17749e7a 100644 --- a/web/modules/custom/hoeringsportal_content_access/src/Helper.php +++ b/web/modules/custom/hoeringsportal_content_access/src/Helper.php @@ -109,7 +109,7 @@ public function nodeAccess(NodeInterface $node, string $operation, AccountInterf /** * Implements hook_views_query_alter(). * - * Alters query to onyl select nodes that the current user has edit access to. + * Alters query to only select nodes that the current user has edit access to. */ public function viewsQueryAlter(ViewExecutable $view, QueryPluginBase $query) { if ($this->bypassDepartmentAccessCheck()) { diff --git a/web/modules/custom/hoeringsportal_deskpro/src/Service/mock/agents.yaml b/web/modules/custom/hoeringsportal_deskpro/src/Service/mock/agents.yaml index 8353b937..54bed861 100644 --- a/web/modules/custom/hoeringsportal_deskpro/src/Service/mock/agents.yaml +++ b/web/modules/custom/hoeringsportal_deskpro/src/Service/mock/agents.yaml @@ -1,4 +1,21 @@ data: + - id: 001 + primary_email: deskpro@example.com + first_name: Deskpro + last_name: Agent + title_prefix: '' + name: Deskpro Agent + display_name: Deskpro Agent + is_agent: true + avatar: + default_url_pattern: https://example.com/file.php/avatar/{{IMG_SIZE}}/default.jpg?size-fit=1 + url_pattern: null + base_gravatar_url: null + online: false + online_for_chat: false + last_seen: null + agent_data: null + - id: 007 primary_email: 007@example.com first_name: James diff --git a/web/modules/custom/hoeringsportal_hearing/modules/hoeringsportal_hearing_fixtures/src/Fixture/HearingFixture.php b/web/modules/custom/hoeringsportal_hearing/modules/hoeringsportal_hearing_fixtures/src/Fixture/HearingFixture.php index 88fcd840..fb7bbc76 100644 --- a/web/modules/custom/hoeringsportal_hearing/modules/hoeringsportal_hearing_fixtures/src/Fixture/HearingFixture.php +++ b/web/modules/custom/hoeringsportal_hearing/modules/hoeringsportal_hearing_fixtures/src/Fixture/HearingFixture.php @@ -75,8 +75,10 @@ public function load() { ->id(), ], 'field_project_reference' => '', - // If we're lucky this Deskpro data makes sense. - 'field_deskpro_department_id' => 12, + // If we're lucky (or follow the test mode instructions in + // ../../../../../hoeringsportal_deskpro/README.md) this Deskpro data + // makes sense. + 'field_deskpro_department_id' => 1, 'field_deskpro_agent_email' => 'deskpro@example.com', 'field_teaser' => 'Lorem ipsum teaser', 'field_hearing_ticket_add' => '',