Skip to content

Fix "fileActions.currentFile" not set before using it - #7624

Merged
MorrisJobke merged 1 commit into
masterfrom
fix-fileActions-currentFile-not-set-before-using-it
Jan 2, 2018
Merged

Fix "fileActions.currentFile" not set before using it#7624
MorrisJobke merged 1 commit into
masterfrom
fix-fileActions-currentFile-not-set-before-using-it

Conversation

@danxuliu

Copy link
Copy Markdown
Member

Follow-up fix for the second commit of #7591

When an empty area of a file row was clicked and the Details action was executed fileActions.currentFile was not guaranteed to be set to the appropriate object (it depended on the previous actions of the user), so when it was used by getCurrentMimeType() and other FileActions functions they may not work as expected. Now it is explicitly set to the appropriate value before its use.

When an empty area of a file row was clicked and the "Details" action
was executed "fileActions.currentFile" was not guaranteed to be set to
the appropriate object (it depended on the previous actions of the
user), so when it was used by "getCurrentMimeType()" and other
FileActions functions they may not work as expected. Now it is
explicitly set to the appropriate value before its use.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@codecov

codecovBot commented Dec 26, 2017

Copy link
Copy Markdown

Codecov Report

Merging #7624 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@ Coverage Diff @@## master #7624 +/- ##
============================================
+ Coverage 51.17% 51.17% +<.01% 
Complexity 24886 24886 ============================================
Files 1602 1602 Lines 94750 94750 Branches 1368 1368 ============================================
+ Hits 48485 48486 +1 + Misses 46265 46264 -1
Impacted FilesCoverage ΔComplexity Δ
apps/files_trashbin/lib/Expiration.php91.93% <0%> (+1.61%)29% <0%> (ø)⬇️

@MorrisJobke
MorrisJobke merged commit fa2fe34 into masterJan 2, 2018
@MorrisJobke
MorrisJobke deleted the fix-fileActions-currentFile-not-set-before-using-it branch January 2, 2018 09:28
@MorrisJobkeMorrisJobke mentioned this pull request Jan 2, 2018
30 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@danxuliu@rullzer@MorrisJobke