View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1701 | Composr | General / Uncategorised | public | 2014-10-14 19:31 | 2014-10-19 19:04 |
Reporter | Lhasadreams | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 1701: Getting an error when trying to edit a Car Register Entry | ||||
Description | No sure when this stopped working. Maybe it is a result of how many entries we have? Programming error: Integers and/or floats should not be passed into templates (DEFAULT): convert them to strings via integer_format/float_format/strval. vwgolfmk1.org.uk Cheers Ade | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
Sorry for the bug. |
|
Hi Chris, I can edit the cars details now, but then it says: A car with registration number E419mje is already registered by Paddy 1. Even if I su to that user I get the same error Cheers Ade |
|
Ah, sorry another bug. It was checking for duplicate registrations when adding/editing cars, but BEFORE it stripped invalid characters from the registration numbers. This meant that some got through due to it not comparing like-for-like. So the error message you saw was legitimate, because the bug let the duplicate into the system. The following duplicate records exist... +------+------------------+ | m_id | m_car_reg_number | +------+------------------+ | 85 | LAA401Y | | 167 | K19OLF | | 201 | HRP168Y | | 219 | khw190x | | 220 | khw190x | | 221 | khw190x | | 249 | HRP168Y | | 259 | Sij3853 | | 260 | Sij3853 | | 261 | Sij3853 | | 262 | Sij3853 | | 263 | Sij3853 | | 282 | c32jro | | 283 | c32jro | | 292 | F608YRU | | 296 | K19OLF | | 337 | LAA401Y | | 338 | LAA401Y | | 366 | F608YRU | | 376 | E419mje | | 377 | E419mje | | 380 | H861TAK | | 381 | H861TAK | +------+------------------+ I have fixed the bug. I have also made the error message you saw non-fatal in the cases of the problem already being in the system (however if you actively change a registration to something which is a duplicate, that would still be a fatal error). |
|
Thanks Chris. And thanks for listing the duplicates out !! Cheers Ade |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-02-26 18:29 | Chris Graham | Category | General => General / Uncategorised |