Skip to content

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

Merged
MorrisJobke merged 2 commits into
stable14from
stable14-10888
Nov 14, 2018
Merged

[stable14] Fix missing quickaccess favorite folder on add#12441
MorrisJobke merged 2 commits into
stable14from
stable14-10888

Conversation

@newhinton

Copy link
Copy Markdown
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>
@MorrisJobkeMorrisJobke added the 3. to review Waiting for reviews label Nov 14, 2018
@MorrisJobkeMorrisJobke added this to the Nextcloud 14.0.4 milestone Nov 14, 2018
@MorrisJobkeMorrisJobke mentioned this pull request Nov 14, 2018

@kesselbkesselb left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
*/
publicfunctionget($path);
could throw it.

@JanDragonJanDragon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Its Work

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

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

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 stable14Nov 14, 2018
@MorrisJobke
MorrisJobke deleted the stable14-10888 branch November 14, 2018 20:18
@MorrisJobke

Copy link
Copy Markdown
Member

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

@MorrisJobkeMorrisJobke mentioned this pull request Nov 22, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@newhinton@MorrisJobke@kesselb@JanDragon