Skip to content

Broken Jquery Ajax #2

Description

@MetalMichael

Sometime when using the website last year, activating tickets didn't work. I wrote a hotfix at the time, as for some reason the "error" callback was being called instead of the "success" callback. This is probably still live.

Finally realised why this was happening.
http://stackoverflow.com/questions/6186770/ajax-request-return-200-ok-but-error-event-is-fired-instead-of-success

No idea why it didn't happen originally. Maybe someone updated jquery.

Pretty simple fix. Either change the requests from json, or return an empty model from PHP.

This may have also broken other things, potentially unnoticed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions