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 injecting of view with embedded script #1734

Merged
merged 1 commit into from
Aug 2, 2020

Conversation

dmitrylyzo
Copy link
Contributor

MusicBrainz plugin as example
MusicBrainz plugin fields aren't updated if you open configuration page twice (open, back, open).
That's (probably) because embedded script is still alive when you open page second time, and variable MusicBrainzPluginConfig is going to be defined second time.
https://github.com/jellyfin/jellyfin/blob/b7421db5fea50e684334806a4ecc8d9f943d754a/MediaBrowser.Providers/Plugins/MusicBrainz/Configuration/config.html#L35-L37

Changes
Change injection order: remove, then append.

Issues
Plugin configuration fields aren't updated.

@sonarcloud
Copy link

sonarcloud bot commented Aug 2, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
3.1% 3.1% Duplication

@dkanada dkanada merged commit 6607718 into jellyfin:master Aug 2, 2020
@dmitrylyzo
Copy link
Contributor Author

btw, I dunno why it is silently fails
Also, if this issue occurs on stable we should backport.

@dkanada dkanada added the stable backport Backport into the next stable release label Aug 2, 2020
@dkanada
Copy link
Member

dkanada commented Aug 2, 2020

I'm pretty sure this has been an issue for a while.

@dmitrylyzo dmitrylyzo deleted the fix-plugin-configuration branch August 2, 2020 17:42
@joshuaboniface joshuaboniface added this to In progress in Release 10.6 Maintenance via automation Aug 3, 2020
@joshuaboniface joshuaboniface moved this from In progress to Done in Release 10.6 Maintenance Aug 3, 2020
joshuaboniface pushed a commit that referenced this pull request Aug 3, 2020
Fix injecting of view with embedded script

(cherry picked from commit 6607718)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
@joshuaboniface joshuaboniface moved this from Done to Backported in Release 10.6 Maintenance Aug 3, 2020
@joshuaboniface joshuaboniface removed the stable backport Backport into the next stable release label Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants