Description: The Hairdresser Booking Read show all the booking record instead of itself booking record. Step to Reproduce: 1. Hairdress login 2. Select “My booking” 3. The List show all the record. Actual Result: The list show all the record. Expected Result: The list should show the record for the hairdresser id only.
The bug was caused by the incorrect SQL statement. It select all the record. sql = "SELECT booking_id, booking_customer_id, C.user_name, booking_hairdresser_id, H.user_name, booking_date, booking_time, " + "booking_duration, booking_services, booking_subtotal, booking_discount, booking_grandtotal, booking_status " + "FROM bookings B, users C, users H WHERE " + "B.booking_customer_id = C.user_id AND " + "B.booking_hairdresser_id = H.user_id AND " + "B.booking_date LIKE '" + selectedYear + "-" + selectedMonth + "%' AND "; i add "B.booking_hairdresser_id = " + UserInfo.userID in the function read to fix the problem.