Issue with Period Type Validation in Program Stage (v2.42.4)

Dear community,

Please correct me if I am wrong, but my understanding is that the Period Type setting in a Program Stage should limit the number of events a user can create within a specific timeframe (e.g., one event per day for the same Event Date).

However, I believe I have found a bug, which is reproducible on PlayDHIS (v2.42.4). Despite the restrictions, the system still allows multiple events on the same day.

Steps to reproduce:

  1. In the Maintenance app, set a Program Stage to Repeatable and select Daily as the Period Type.
  2. Clear the browser cache.
  3. Open the Capture app and select the specific Program.
  4. Attempt to add multiple events with the same Event Date for a single enrollment.

Actual behavior: The user is still able to create and save multiple events within the same day without any validation errors.

Expected behavior: The system should block the creation of more than one event with the same Event Date if the period type is set to Daily.