Skip to content

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.

@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 <[email protected]>
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.

5 participants