Editor: Fields containing empty arrays are not sent with the rest of the edited record AJAX data

Editor: Fields containing empty arrays are not sent with the rest of the edited record AJAX data

bigbenchrobbigbenchrob Posts: 26Questions: 9Answers: 2

I've just noticed this behaviour. If I hook into the Editor preSubmit event I can see that the data parameter object contains the key for such a field with the value of empty array. However, the key is missing from the data in the $_REQUEST. It would seem surprising if this were expected behaviour, as empty strings are sent just fine. Or maybe I'm missing something obvious.

Thanks! Rob Campbell
(Editor 1.7.4)

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 50,303Questions: 1Answers: 7,478 Site admin
    Answer ✓

    I agree - that is unexpected. preSubmit should be passed the data that is submitted to the server. Could you give me a link to your page so I can take a look please?

    Also worth updating to 1.9.0 which is the current release.

    Regards,
    Allan

Sign In or Register to comment.