TaxProvinces.php
Version - 3.11
Line 120
$sql= "SELECT COUNT(*) FROM locations WHERE taxprovinceid " . LIKE . " '" .
$OldTaxProvinceName . "'";
Before a tax province is deleted a check occurs to insure the province is
not in use before deleting. The check fails and as a result tax provinces
can be deleted even though locations still exist that use the province
record. I could be wrong but it appears the reason the fail occurs is
because the PHP sql string is malformed at the LIKE and perhaps should
be...
$sql= "SELECT COUNT(*) FROM locations WHERE taxprovinceid LIKE '" .
$OldTaxProvinceName . "'";
Bryan
Tim Schofield
None
None
Public
|
Date: 2009-11-12 11:53 Thanks Bryan, that line was completely wrong on closer inspection. I have |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-11-12 11:53 | tim_schofield |
| resolution_id | None | 2009-11-12 11:53 | tim_schofield |
| assigned_to | nobody | 2009-11-12 11:53 | tim_schofield |
| allow_comments | 1 | 2009-11-12 11:53 | tim_schofield |
| close_date | - | 2009-11-12 11:53 | tim_schofield |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use