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

In the real world id is an initial filename #27271

merged 1 commit into from Feb 28, 2017


Copy link

VicDeo commented Feb 27, 2017


Fixes tooltip with original path in thrashbin

Motivation and Context

Steps to reproduce

  1. Upload a file through the web UI in IE
  2. delete file afterwards in the UI
  3. change into "deleted files view" in the web ui

Expected behaviour

the file is presented and when moving with the mouse over it, a tooltip presents the path, the file has been stored before in ownCloud

Actual behaviour

The file is there, but not tooltip present, so no information about the previous location of the file before deletion.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)


  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

This comment has been minimized.

Copy link

mention-bot commented Feb 27, 2017

@VicDeo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @PVince81, @DeepDiver1975 and @butonic to be potential reviewers.

$originalPath = $originalLocations[$id][$timestamp];
$originalName = substr($entryName, 0, -strlen($timestamp)-2);
if (isset($originalLocations[$originalName][$timestamp])) {
$originalPath = $originalLocations[$originalName][$timestamp];

This comment has been minimized.

Copy link

PVince81 Feb 28, 2017


in my quick debugging yesterday I also noticed that the timestamp key in the array was an integer but the $timestamp variable was a string. If this works it means maybe PHP does its weird non-strict equality == magic to still match the correct key.


This comment has been minimized.

Copy link

PVince81 commented Feb 28, 2017

Tested, works 👍

Please backport to stable9.1

@PVince81 PVince81 merged commit 4a77379 into master Feb 28, 2017
4 checks passed
4 checks passed
Scrutinizer 1 new issues
continuous-integration/jenkins/pr-head This commit looks good
continuous-integration/travis-ci/pr The Travis CI build passed
licence/cla Contributor License Agreement is signed.
@PVince81 PVince81 deleted the fix-trash-tooltip branch Feb 28, 2017
@VicDeo VicDeo mentioned this pull request Feb 28, 2017
4 of 9 tasks complete

This comment has been minimized.

Copy link
Member Author

VicDeo commented Feb 28, 2017

Stable9.1: #27279


This comment has been minimized.

Copy link

lock bot commented Aug 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
3 participants
You can’t perform that action at this time.