| Summary: | Sql statement Incorrect | ||
|---|---|---|---|
| Product: | CS3343 Salon Booking System | Reporter: | chtsang246-c |
| Component: | admin.coupons.Create | Assignee: | kwanng9 <kwanng9-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | shukhyiu2-c |
| Priority: | --- | ||
| Version: | 2.1 | ||
| Hardware: | PC | ||
| OS: | Mac OS | ||
|
Description
chtsang246-c
2023-11-11 16:20:13 HKT
Bug resolved: Initializing index to 0 inside the loop Previously, the index variable was incorrectly initialised to 0 for every iteration of the loop, causing the if-clause (index != 0) to always evaluate to False. This resulted in undesired behaviour. Now, the bug has been fixed by moving the initialisation of index inside the loop, ensuring that it starts at 0 for each iteration. The if-clause will now correctly evaluate based on the updated value of index, resolving the issue. |