Test form submitting incorrect variables

Created on 6 August 2024, 3 months ago
Updated 25 August 2024, 3 months ago

Problem/Motivation

Test submit form is submitting the form values incorrectly to the firebase api service.

Steps to reproduce

Get FCM token that is valid.
Create test notification on test form and submit.
Will return error.

Proposed resolution

Update

$this->messagingService->sendMessageSingleDevice(
        $form_state->getValue('title'),
        $form_state->getValue('message'),
        $form_state->getValue('device_token'),
        NULL,
        NULL,
        NULL,
        intval($form_state->getValue('badge_count')),
);

to

$this->messagingService->sendMessageSingleDevice(
        $form_state->getValue('device_token'),
        $form_state->getValue('title'),
        $form_state->getValue('message'),
        NULL,
        NULL,
        NULL,
        intval($form_state->getValue('badge_count')),
);

Remaining tasks

Update code as above.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

7.0

Component

Code

Created by

🇳🇿New Zealand GeorgeBC

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024