mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00: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:
parent
0e3e715a48
commit
934696766a
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue