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

URL Builder incorrectly chooses the requesters default org instead of the ticket's org #28

Open
Helmsdown opened this issue Mar 1, 2018 · 0 comments

Comments

@Helmsdown
Copy link

If the requester belongs to multiple orgs {{ticket.organization.id}} resolves to the requester's default org. Rather than the ticket's org.

I may be wrong but think this block of code is wrong.

if (context.ticket.requester.organization_id) {
          context.ticket.organization = _.find(data.organizations, function(org) {
            return org.id == context.ticket.requester.organization_id;
          });
        }

Give that this is a v1 app, hoping you guys can fix because fixing locally would require me to upgrade it to a v2 app which is too much overhead right now.

Your thoughts?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant