Skip to content

save reusable ajax callback has mix ofexpected result json and string ... #427

@hayden-t

Description

@hayden-t

if (true || data.success || text == "success") {

it seems the code here is written for 2 different result type, similar in other ajax calls such as delete, there is code to expect/handle json result, the default save.php does not though either throwing a error code on failure which is caught or returning a text string if success.

Not sure which is best but maybe should settle on one and standardise ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions