Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

show first folder of an account incase of invalid folder id #1471

Merged
merged 1 commit into from
May 10, 2016

Conversation

tahaalibra
Copy link
Contributor

if the folder id is not found then the user will be sent to the first folder of that account

please review @ChristophWurst

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @ChristophWurst to be a potential reviewer

// TODO: show first folder of this account
_this.default();
return;
folder = account.get('folders').at(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Note: you could also use .first(), but .at(0) is also fine as it does the same thing ;-)

@ChristophWurst
Copy link
Contributor

Changes look good, I'll test this later! Thanks a lot :-)

@ChristophWurst
Copy link
Contributor

@tahaalibra is there any case where this is currently used? (I don't really know how to test it)

@tahaalibra
Copy link
Contributor Author

actually i am not sure if there are in test cases...i tested it with the browser, by simply entering owncloud/apps/mail#accounts/1/folders/(placing some random text)

@ChristophWurst
Copy link
Contributor

ChristophWurst commented May 6, 2016

  • TODO: update changelog

@tahaalibra tahaalibra force-pushed the show-first-folder-of-account branch from 27bcafa to 04f2d0e Compare May 6, 2016 20:00
@tahaalibra
Copy link
Contributor Author

i messed up on rebase..i will fix this now

@tahaalibra tahaalibra force-pushed the show-first-folder-of-account branch 4 times, most recently from 3c49bd2 to 27bcafa Compare May 8, 2016 23:38
@ChristophWurst
Copy link
Contributor

@tahaalibra please rebase on current master, there should only be one commit. Let me know if you need help :)

@ChristophWurst
Copy link
Contributor

And please adjust the changelog accordingly, this fix is part of 0.4.5 not 0.4.4 ;-)

@tahaalibra tahaalibra force-pushed the show-first-folder-of-account branch 4 times, most recently from 6b0c9cd to 09c3486 Compare May 10, 2016 18:56
@ChristophWurst ChristophWurst force-pushed the show-first-folder-of-account branch 2 times, most recently from 4a6273f to 0701389 Compare May 10, 2016 19:06
@ChristophWurst
Copy link
Contributor

👍 works perfectly! Thanks

@ChristophWurst ChristophWurst merged commit 0058ad2 into master May 10, 2016
@ChristophWurst ChristophWurst deleted the show-first-folder-of-account branch May 10, 2016 19:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants