Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Publication] Fix deletion of file when editing project #9181

Merged
merged 3 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ changes in the following format: PR #1234***
- Fix examiner site display (PR #8967)
- bvl_feedback updates in real-time (PR #8966)
- DoB and DoD format respected in candidate parameters (PR #9001)
- Fix delete file in upload (PR #9181)

## LORIS 25.0 (Release Date: ????-??-??)
### Core
Expand Down
4 changes: 2 additions & 2 deletions modules/publication/jsx/projectFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ class ProjectFormFields extends React.Component {
showCancelButton: true,
confirmButtonText: 'Yes, I am sure!',
cancelButtonText: 'No, cancel it!',
}).then(function(willDelete) {
if (willDelete) {
}).then((result) => {
if (result.value) {
let url = loris.BaseURL
+ '/publication/ajax/FileDelete.php?uploadID='
+ uploadID;
Expand Down
Loading