aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2013-04-11 13:33:16 +0100
committerDave Whiteland <dave@mysociety.org>2013-04-11 13:33:16 +0100
commitf52ed1728b3edf6ea317e7d0e34c4a8f0ed8d657 (patch)
tree2e2e883bf76d5fb6f5e49d3b78da4b6608180fa5
parentc0214f766560f7d9cf6acc5cb4d8755c8936f10b (diff)
change field length for ce_description to 1970
OCC report that the Action/Remarks field has max size of 1970, which matches our experience of 2000 (from the PEM docs) choking.
-rwxr-xr-xbin/oxfordshire/open311_service_request.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/oxfordshire/open311_service_request.cgi b/bin/oxfordshire/open311_service_request.cgi
index 87652b0d0..4a53af934 100755
--- a/bin/oxfordshire/open311_service_request.cgi
+++ b/bin/oxfordshire/open311_service_request.cgi
@@ -210,7 +210,7 @@ sub insert_into_pem {
$bindings{":ce_surname"} = strip($$h{$F{LAST_NAME}}, 30); # 'STEWART'
$bindings{":ce_work_phone"} = strip($$h{$F{PHONE}}, 25); # '0117 600 4200'
$bindings{":ce_email"} = strip($$h{$F{EMAIL}}, 50); # 'info@exor.co.uk'
- $bindings{":ce_description"} = strip($description, 2000, $F{DESCRIPTION}); # 'Large Pothole'
+ $bindings{":ce_description"} = strip($description, 1970, $F{DESCRIPTION}); # 'Large Pothole'
# nearest address guesstimate
$bindings{":ce_location"} = strip($location, 254);