Skip to content

Commit

Permalink
[Fix-#3702][api] When re-upload the resource file but don't change th…
Browse files Browse the repository at this point in the history
…e name or desc,it need replace the origin resource file. (#3862)

* [Fix-#3702][api] When re-upload the resource file but don't change the name or desc,it will not replace the origin resource file.

* [Fix-#3702][api] When re-upload the resource file but don't change the name or desc,it will not replace the origin resource file.
  • Loading branch information
lgcareer authored Oct 9, 2020
1 parent d946717 commit 66e9a14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public Result updateResource(User loginUser,
return result;
}

if (name.equals(resource.getAlias()) && desc.equals(resource.getDescription())) {
if (file == null && name.equals(resource.getAlias()) && desc.equals(resource.getDescription())) {
putMsg(result, Status.SUCCESS);
return result;
}
Expand Down

0 comments on commit 66e9a14

Please sign in to comment.