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

[stable14] Fix missing quickaccess favorite folder on add #12441

Merged
merged 2 commits into from
Nov 14, 2018

Conversation

newhinton
Copy link
Contributor

Backport to NC14 of #10888

When you mark a folder as favorite, it should be added to the quickaccessbar. This is not the case, because the route for checking if the newly marked element is a folder or a directory is missing. This PR readds the missing route.

…added to favorites

Signed-off-by: fnuesse <felix.nuesse@t-online.de>
@MorrisJobke MorrisJobke added the 3. to review Waiting for reviews label Nov 14, 2018
@MorrisJobke MorrisJobke added this to the Nextcloud 14.0.4 milestone Nov 14, 2018
@MorrisJobke MorrisJobke mentioned this pull request Nov 14, 2018
Copy link
Contributor

@kesselb kesselb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

*
* @NoAdminRequired
*
* @param String
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*
* @param String
* @return String
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add @throws NotFoundException because get($folderpath)

/**
* Get the node at $path
*
* @param string $path relative path of the file or folder
* @return \OCP\Files\Node
* @throws \OCP\Files\NotFoundException
* @since 6.0.0
*/
public function get($path);
could throw it.

Copy link

@JanDragon JanDragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its Work

@MorrisJobke MorrisJobke changed the title [Backport] Bug/noid/fix missing quickaccess favorite folder on add [stable14] Fix missing quickaccess favorite folder on add Nov 14, 2018
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@MorrisJobke MorrisJobke merged commit c4155e2 into stable14 Nov 14, 2018
@MorrisJobke MorrisJobke deleted the stable14-10888 branch November 14, 2018 20:18
@MorrisJobke
Copy link
Member

@danielkesselberg I will port the fixes to your comments to master as well.

@MorrisJobke MorrisJobke mentioned this pull request Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants