pterodactyl / whmcs

WHMCS Module for Pterodactyl (v0.7.3 and higher)
MIT License
185 stars 77 forks source link

Max Players variable and WHMCS quantity slider problem #98

Open mouse1121 opened 3 years ago

mouse1121 commented 3 years ago

My max_players variable has rule: required|integer|max:32, and in Configurable Options i use quantity (slider), when i try downgrade player slots with existing service lower or higher i received error:

Array
(
    [errors] => Array
        (
            [0] => Array
                (
                    [code] => DataValidationException
                    [status] => 500
                    [detail] => Data integrity exception encountered while performing database write operation. {"variable_value":["The variable value must be a string."]}
                )

        )

    [status_code] => 500
)

If change rule to string, it says error:

Array
(
    [errors] => Array
        (
            [0] => Array
                (
                    [code] => ValidationException
                    [status] => 422
                    [detail] => The Max Players variable must be a string.
                    [meta] => Array
                        (
                            [source_field] => environment.MAX_PLAYERS
                            [rule] => string
                        )

                )

        )

    [status_code] => 422
)

If i change Configurable Options from quantity to dropdown menu, all good. Is it problem with WHMCS module?

mouse1121 commented 3 years ago

Any response?

threezix commented 1 year ago

yes