admin 20
This commit is contained in:
@@ -5,7 +5,7 @@ $id = filterRequest("id");
|
||||
|
||||
$allowedFields = [
|
||||
"kazan", "comfortPrice", "speedPrice", "deliveryPrice",
|
||||
"freePrice", "latePrice", "heavyPrice", "adminId", "createdAt", "naturePrice"
|
||||
"freePrice", "latePrice", "heavyPrice", "adminId", "naturePrice", "fuelPrice", "familyPrice"
|
||||
];
|
||||
|
||||
$setParts = [];
|
||||
@@ -33,6 +33,7 @@ $stmt->execute($params);
|
||||
if ($stmt->rowCount() > 0) {
|
||||
jsonSuccess(null, "Kazan data updated successfully");
|
||||
} else {
|
||||
jsonError("Failed to update kazan data");
|
||||
// If no rows were changed but execute was successful, it might be because the data is the same
|
||||
jsonSuccess(null, "Kazan data remains unchanged or updated");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user