Skip to content

fix(config) time constraint 'same_day' config not working#1044

Merged
JohnVillalovos merged 2 commits intoLibreBooking:developfrom
belcirelk:fix/time-constraint-config
Feb 19, 2026
Merged

fix(config) time constraint 'same_day' config not working#1044
JohnVillalovos merged 2 commits intoLibreBooking:developfrom
belcirelk:fix/time-constraint-config

Conversation

@belcirelk
Copy link
Contributor

The value 'same_day' of the config reservation.start.time.constraint is reverted to its previous value 'current'. same_day was not taken into account. The 'current' value describe more the behavior than 'same_day' since the reservations can not be changed after they are finished.

Closes #1043

@belcirelk
Copy link
Contributor Author

Perhaps @lucs7 should take a look since he changed 'current' for 'same_day'.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a configuration bug where the value 'same_day' for reservation.start.time.constraint was not actually implemented in the codebase. The PR reverts the configuration options back to 'current' (from 'same_day'), which is the value actually recognized by the underlying implementation in Domain/Values/ReservationStartTimeConstraint.php.

Changes:

  • Reverted config option from 'same_day' to 'current' in ConfigKeys.php
  • Updated description to reflect correct options: 'future', 'none', 'current'
  • Updated config.dist.php comment to document correct options

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/Config/ConfigKeys.php Updates the RESERVATION_START_TIME_CONSTRAINT configuration to use 'current' instead of 'same_day' and corrects the description to list the actually implemented options
config/config.dist.php Updates the comment to reflect the correct configuration options

@JohnVillalovos
Copy link
Collaborator

Looks like the commit message needs a comma ':' after 'fix(config)'. Should be fix(config): time constraint 'same_day' config not working

@belcirelk belcirelk force-pushed the fix/time-constraint-config branch from 2aeee74 to 32ad172 Compare February 18, 2026 20:01
@JohnVillalovos
Copy link
Collaborator

@belcirelk Thanks. I agree that docs/source/ADVANCED-CONFIGURATION.rst should also be updated. Besides that I think it looks good to merge.

Copy link
Collaborator

@JohnVillalovos JohnVillalovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @belcirelk LGTM.

I'll give @lucs7 time to review. But will plan on merging it on the 18th if I don't hear any objections.

@JohnVillalovos JohnVillalovos force-pushed the fix/time-constraint-config branch from e900f75 to 015a878 Compare February 18, 2026 23:08
@JohnVillalovos JohnVillalovos force-pushed the fix/time-constraint-config branch from 015a878 to ae7f3de Compare February 18, 2026 23:09
@belcirelk
Copy link
Contributor Author

Perfect. I don't know if he had a plan to change something with that.

@JohnVillalovos JohnVillalovos merged commit 0d15ca3 into LibreBooking:develop Feb 19, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reservation.start.time.constraint = 'same_day' is not working

2 participants

Comments