aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/dashboard.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-09-07 08:22:35 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-09-07 08:23:53 +0100
commitf57adcb38568a0321f349cd823fbd2578eacb2ef (patch)
tree4005918ba12fbfc39cb26609fda53405be1a5d78 /t/app/controller/dashboard.t
parent3216bd52e77a3997e8826d34ccdab5d1d875a9fa (diff)
Make sure pin ID is an integer.
The JavaScript assumes it is, but due to a string comparison in DBIx::Class [1] when a has_many prefetch is in use (as it is on a /reports page when a shortlist-using staff user is logged in) all IDs bar the first were being given an internal string value and JSON encoding was outputting them as a string. [1] https://github.com/dbsrgits/dbix-class/blob/v0.08209/lib/DBIx/Class/ResultSet.pm#L1331
Diffstat (limited to 't/app/controller/dashboard.t')
0 files changed, 0 insertions, 0 deletions