Editor submits erased fields and doesn't update the row

Editor submits erased fields and doesn't update the row

shaykshayk Posts: 2Questions: 1Answers: 0
edited June 2021 in Editor

The editor submits the following data:

(
    [id] => 7785
    [attendee] => Array
        (
            [id] => 7785
            [name] => Maria
            [family_name] => Bentz
            [state] => open
            [is_paid] => 
            [email] => maria@gmail.com
            [title_id] => Array
                (
                    [0] => 6
                    [1] => Dr
                )

            [role] => CTO
            [barcode] => 14023922404266024722
            [qr_code] => https://mydomain/?id=7785
            [id_value] => 
            [company_name] => MyCompany
            [mobile] => 0527333333
            [event_id] => Array
                (
                    [0] => 64
                    [1] => My EVENT
                )

            [partner_id] => 
            [payment_status] => free
            [event_ticket_id] => 
            [date_open] => 2021-06-10 14:26:12
            [date_closed] => 2021-06-12 16:32:47
            [registration_answer_ids] => Array
                (
                    [0] => 3035
                    [1] => 3036
                    [2] => 3075
                )

            [sale_order_id] => 
            [__last_update] => 22-06-2021 21:38:22
        )

    [answers] => 
    [payment] => 
    [orders] => 
)

The problem is when I delete a field value in the editor form, it still keeps submitting it.
The other problem is that the server response is not updated in the row.

I'm using idSrc: "id" so there shouldn't be a problem with the row id.
Thanks

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    The problem is when I delete a field value in the editor form, it still keeps submitting it.

    I'm not sure what you mean here I'm afraid. If you were to press delete in the e-mail input for example, will it submit immediately?

    Can you give me a link to a page showing the issue?

    Thanks,
    Allan

  • shaykshayk Posts: 2Questions: 1Answers: 0

    Hi Alian
    It will submit only when I press the update button.
    For example, I have this edit entry form

    Now, if I erase the email field, maria@gmail.com, and press update , maria email is still summited

    Thanks

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    That's odd! I'm not seeing that happen in the examples here - are you?

    What happens if you modify the e-mail address, rather than just deleting it completely - does that then work?

    What are you using on the server-side for this? Is it possible it is seeing an empty value and not writing to the database?

    Can you give me a link to a page showing the issue?

    Allan

  • sBajzeksBajzek Posts: 2Questions: 0Answers: 0

    Was a solution ever found for this? I am having a similar problem.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We weren't able to diagnose it further, unfortunately. We'd be happy to take a look if you can link to your page so we can debug it,

    Colin

  • sBajzeksBajzek Posts: 2Questions: 0Answers: 0

    Thanks. I will send you a message with a page and details.

Sign In or Register to comment.