Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Announcement API issue with repeat_msg #565

Open
danardf opened this issue Nov 25, 2024 · 0 comments
Open

[bug]: Announcement API issue with repeat_msg #565

danardf opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working triage Triage

Comments

@danardf
Copy link

danardf commented Nov 25, 2024

FreePBX Version

FreePBX 16 and 17

Issue Description

Using API GPL, announcement module, if repeat_msg is set for example in the request allAnnouncements, there is occured.
Indeed, repeat_msg expecting to get int() but it receives an empty string.
This item need to be empty for disable status or be set to 0, 1, 2 ......
So, if the annoucement is disabled (empty) there is a type error (string instead of int).
Even if this item receives a digit or numeric data, it needs to accept an empty data. So, it should be string anyway.

The doc doesn't exist on the wiki regarding annoucement.
It will be useful to write one.

Operating Environment

announcement - 16.0.7

The issue is present on 17 too.

Relevant log output

stdClass Object
(
    [debugMessage] => Expected a value of type "Int" but received: (empty string)
    [message] => Internal server error
    [extensions] => stdClass Object
        (
            [category] => internal
        )

    [locations] => Array
        (
            [0] => stdClass Object
                (
                    [line] => 10
                    [column] => 4
                )

        )

    [path] => Array
        (
            [0] => allAnnouncements
            [1] => announcements
            [2] => 0
            [3] => repeat_msg
        )

)
@danardf danardf added bug Something isn't working triage Triage labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Triage
Projects
None yet
Development

No branches or pull requests

1 participant