Consul: Bug on budget investments pagination

Created on 6 Nov 2018  路  4Comments  路  Source: consul/consul

Description

Type: Bug

Current Behavior

When use pagination on admin/budgets/N/budget_investments after "Select/unselect" a budget investment appear the following error:

screenshot 2018-11-06 at 18 51 41

Expected Behavior

Use pagination on admin/budgets/N/budget_investments after "Select/unselect" a budget investment without generate an error. 馃

Steps to reproduce

  1. Visit admin/budgets/N/budget_investments
  2. Select or unselect a budget investment.
  3. Use pagination.

Screenshot

kapture 2018-11-06 at 18 48 08

Notes

A possible fix would be to change the line in app/views/admin/budget_investments/toggle_selection.js.erb so it doesn't re-render all investments but only the one which has just been selected (a similar implementation can be found in app/views/admin/legislation/proposals/toggle_selection.js.erb). The line currently reads $("#investments").html('<%= j render("admin/budget_investments/investments") %>');.

Admin Budgets Bug Good first issue

All 4 comments

Hello dear @decabeza
I am working to solve this issue, will make a pull request in a short time.
thank you.

I have made a pull request to this problem, my fork had 3 failing tests which are not related to this issue and are not passing the test suite as result, is that okay?

This issue considered closed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

decabeza picture decabeza  路  4Comments

decabeza picture decabeza  路  4Comments

voodoorai2000 picture voodoorai2000  路  7Comments

MariaCheca picture MariaCheca  路  4Comments

decabeza picture decabeza  路  3Comments