mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12375] Fix broken attachment deletion.
The response 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 and thus leaving the attachment row intact. PHPBB3-12375
This commit is contained in:
@@ -253,10 +253,7 @@ phpbb.plupload.deleteFile = function(row, attachId) {
|
||||
};
|
||||
|
||||
var done = function(response) {
|
||||
var json = {};
|
||||
try {
|
||||
json = $.parseJSON(response);
|
||||
} catch (e) {
|
||||
if (typeof response !== 'object') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user