Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When number rooms > 1 the availability search redirects the user to a /booking
page with an empty search form with message text: "Perform a search to get availability information"
Note that there are no results, even if there are plenty of rooms available during the date range specified
Steps to reproduce:
- Ensure rooms is configured to show individual units on availability search, and that you have at least two unit types and one room for each type.
- Visit
/booking
page (or any page that contains the availability search form). - Select a date range a few months in the future where there are guaranteed to be rooms available, and specify 2 rooms, 2 guests.
- Click search button, to open availability search results page.
Proposed resolution
- If there are results to be found (there should be results!) a search result page should be shown.
- If no results then, at the very least, an appropriate warning / error message should be shown indicating that there were no rooms available and the user should widen their search.
- Ideally, also if no results, then the user would be re-routed back to the
/booking
page and the form values entered by the user should be pre-filled in the form.
Remaining tasks
Write code.
User interface changes
None.
API changes
None.
Original report by @dialn
When the number of rooms> 1 is selected no results only the following message, no matter the number of rooms field if it will not work with a number> 1
Comment | File | Size | Author |
---|---|---|---|
numberroommas1.png | 98.33 KB | dialn |
Comments
Comment #1
dialn CreditAttribution: dialn commentedComment #2
jwilson3I've confirmed this bug and cleaned up the issue summary.
Comment #3
jwilson3Additional cleanup of issue summary.
Comment #4
jwilson3Comment #5
jwilson3Comment #6
jwilson3Bumping this up to critical.
Comment #7
jwilson3This was fixed by nicolo on our github repository with commit e5c8fb18, has not been pushed to drupal.org yet. If you need the latest version you can download that commit as a patch, or just download the latest version from github, or wait until this gets pushed up to drupal.org.