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

Removing all accounts from cost center throws errors #877

Open
jniles opened this issue Oct 28, 2015 · 0 comments
Open

Removing all accounts from cost center throws errors #877

jniles opened this issue Oct 28, 2015 · 0 comments

Comments

@jniles
Copy link
Contributor

jniles commented Oct 28, 2015

A bug exists in the cost allocation module (/cost_center/allocation/). When attempting to unassign all accounts using the table header checkbox, the server throws an "Unexpected End Of Input" error.

Steps to Reproduce

  1. Navigation to the cost center allocations module (/cost_center/allocation)
  2. Choose a cost center from the drop down
  3. Check all accounts to assign to that cost center and submit
  4. Check all accounts to unassign (retirer) and submit
  5. Observe the console errors.

Expected Results No errors!

This probably is an issue with the size of the JSON being posted to the server. The controller using JSON.stringify(accounts) to POST data back to the server. We might need to design a better API endpoint that takes only account IDs instead.

@jniles jniles changed the title Removing all accounts from cost center throw errors Removing all accounts from cost center throws errors Oct 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant