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:

  1. 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.
  2. Visit /booking page (or any page that contains the availability search form).
  3. Select a date range a few months in the future where there are guaranteed to be rooms available, and specify 2 rooms, 2 guests.
  4. Click search button, to open availability search results page.

Proposed resolution

  1. If there are results to be found (there should be results!) a search result page should be shown.
  2. 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.
  3. 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

CommentFileSizeAuthor
numberroommas1.png98.33 KBdialn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dialn’s picture

Title: when number > 1 msg: Perform a search to get availability information » when number rooms > 1 msg: Perform a search to get availability information
Issue summary: View changes
jwilson3’s picture

Issue summary: View changes

I've confirmed this bug and cleaned up the issue summary.

jwilson3’s picture

Title: when number rooms > 1 msg: Perform a search to get availability information » Unable to find availability of more than one room
Issue summary: View changes

Additional cleanup of issue summary.

jwilson3’s picture

Issue summary: View changes
jwilson3’s picture

Issue summary: View changes
jwilson3’s picture

Priority: Normal » Critical

Bumping this up to critical.

jwilson3’s picture

Status: Active » Fixed
Issue tags: +7.1

This 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit 8dba23e on master by nicola85:
    Issue #2179967: Search not work for a number of rooms > 1 when...
  • Commit e5c8fb1 on master by nicola85:
    Issue #2179967: Search not work for a number of rooms > 1 when...