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

having issue in fetching lists of different board #979

Closed
faisalahmed opened this issue Apr 5, 2017 · 9 comments
Closed

having issue in fetching lists of different board #979

faisalahmed opened this issue Apr 5, 2017 · 9 comments

Comments

@faisalahmed
Copy link

Hi,

i am having issue in following code

var boardId = Session.get('selectedBoard') ? Session.get('selectedBoard') : Session.get('currentBoard') var selectedBoardLists = Boards.findOne({ '_id' : boardId}).lists(); var list = selectedBoardLists.fetch();

where board id would be any other board which user selects or currentBoard ... usually it doesn't return any results on some of boardId which exists in mongoDB ... its only working for currentBoard

but when i open up all the boards at least once and than again run above code in my helper function of "moveCardPopup" template fetch lists correctly from mongoDB

i am testing above code with AdminUser who has access to all the boards and also done testing by changing permission between public and private but it didn't worked

@xet7
Copy link
Member

xet7 commented Apr 5, 2017

@faisalahmed

Is this for some feature you are developing now?

@faisalahmed
Copy link
Author

@xet7

yes, i am currently making feature of move and copy cards between different boards

@xet7
Copy link
Member

xet7 commented Apr 5, 2017

@faisalahmed

Have you looked at existing pull request, that currently does not build properly?
#446

@xet7
Copy link
Member

xet7 commented Apr 5, 2017

@faisalahmed

That pull request may have some stuff that is not needed.

@xet7
Copy link
Member

xet7 commented Apr 5, 2017

Moved to #797

@xet7 xet7 closed this as completed Apr 5, 2017
@faisalahmed
Copy link
Author

faisalahmed commented Apr 5, 2017

@xet7 i have read all the code related to the pull request you have shared #446

my issue is different ... as i am facing issue in fetching data from DB when i send different BoardId which is not opened yet

@xet7
Copy link
Member

xet7 commented Jul 16, 2017

@faisalahmed

Does cardClone code from #797 have something that helps you? It's originally linked to this:
https://github.com/hsduk/wekan/tree/plugin-simple-timer/client/components/plugins

and probably same code is also at devel branch:
https://github.com/hsduk/wekan/tree/devel/client/components/plugins

@xet7
Copy link
Member

xet7 commented Jul 26, 2017

@faisalahmed

Can you share your current in-progress code of move and copy cards as pull request or GitHub gist?

@xet7
Copy link
Member

xet7 commented Nov 23, 2017

Move and copy cards feature has already been added to Wekan.

@xet7 xet7 closed this as completed Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants