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

(Fix) Upload page: ajax preview description, save values, don't replace #1760

Merged
merged 1 commit into from
May 12, 2021

Conversation

Oha-you
Copy link
Contributor

@Oha-you Oha-you commented May 12, 2021

Some improvements for the upload page:

  1. Preview description without page reload, fixes [Bug] click on the preview in upload deleted form #1741
  2. Correctly restore old() values after page reload (e.g. in case of errors). Current checks with ?? (isset) always return true and erase values because defaults are set in TorrentController.php#L1208
  3. Don't trigger uploadExtension.hook() if any of these inputs already have values: name, tmdb, imdb.
    It might be frustrating to see an error after page reload, select torrent file again and have name/ID values replaced. Automatic values should be set only if these inputs are empty.
Changes in helper.js

2021-05-12_211004
2021-05-12_211018

@HDVinnie
Copy link
Collaborator

Well done. Thanks for the continued contributions.

@HDVinnie HDVinnie merged commit b05fad2 into HDInnovations:master May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] click on the preview in upload deleted form
2 participants