aboutsummaryrefslogtreecommitdiffstats
path: root/docs/_posts/2016-12-16-v2.0-javascript-improvements.md
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2016-12-06 11:57:34 +0000
committerDave Arter <davea@mysociety.org>2016-12-06 12:16:22 +0000
commit102418842a833c29f855557bf4c410290b5a2020 (patch)
treed639ff3adbd2fecadfd5ac1266cccf65db093f47 /docs/_posts/2016-12-16-v2.0-javascript-improvements.md
parent7df5f6d00c34580987509a2ccb4520d2fde96866 (diff)
[Zurich] Fix 500 error when editing superusers
The Zurich::admin_type function was setting $c->stash->{body}, meaning that when trying to edit a superuser the 'fetch_contacts' function wasn't being called, causing an "Can't call method "all" on an undefined value" error as $c->stash->{live_contacts} wasn't ever being set. Fixed by changing the conditional to simply determine whether fetch_contacts needs to be called. Included a regression test that meant a small addition to the MapItZurich mock.
Diffstat (limited to 'docs/_posts/2016-12-16-v2.0-javascript-improvements.md')
0 files changed, 0 insertions, 0 deletions