Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-12375

Attachment deletion broken after jQuery update

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-b3
    • Component/s: JavaScript / AJAX
    • Labels:
      None

      Description

      The request is sent successfully and the file is removed, but the row in the uploader remains in place. This occurs due to a change in the behavior
      of parseJSON. The response below is already parsed and when running it through parseJSON returned null prior to 1.9; now there's an actual error thrown so the function is returning leaving the attachment row intact.

       	var done = function(response) {
      		var json = {};
      		try {
      			json = $.parseJSON(response);
      		} catch (e) {
       			return;
       		}
       

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            prototech prototech
            Reporter:
            prototech prototech
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development