PHP version: 5.2.9
Drupal version: 6.16
Bookings API: 6.x-3.x-dev
Views: 6.x-2.10
CCK: 6.x-2.6
Date API: 6.x-2.4

I have a resource defined with "Default availability: Unavailable" and no additional availabilities. I then try to place a booking for this resource, and I click on the "CHECK AVAIL" button. The progress meter is displayed (see attached file request-1.jpg), but there's no indication of whether or not the resource is available when the progress meter goes away. No green check, no red X, nothing. In this case I would expect to get back some kind of indication that the resource isn't available. Is there supposed to be some sort of output from the availability check?

CommentFileSizeAuthor
#17 publicbookings.812150.patch877 bytesAnonymous (not verified)
#16 error-invalid-data-need-resource-id.jpg52.85 KBeasyRider
#7 pb23.15.58.png23.05 KBbeeZentral
request-1.jpg17.68 KBsah62

Comments

Anonymous’s picture

Assigned: Unassigned »

Thanks, I'll look into it.

dropdollop’s picture

I had this same problem. I went to sites/all/modules and enabled several date components and it worked just fine.

bryanhidalgo’s picture

Component: User interface » Public Bookings

Did someone find the solution?, on the client side I get: "Error, invalid data, need resource_id" when checking availability, and in the admin area the button doesn't do anything.

Anonymous’s picture

Status: Active » Needs review

It should be working now ...

@needorf: You need to select a ressource (top of the request page) before checking the availability.

beeZentral’s picture

Version: 6.x-3.x-dev » 6.x-3.0-alpha1

I have the same problem in 3.0-alpha1. I can't change the resource-field when i want to make a booking like this: /publicbookings/request/add/160. The resource "160" is available.

Anonymous’s picture

Status: Needs review » Active

You shouldn't be able to change the resource-field if you pre-select it using the above url, but the resource should be pre-selected in the dropbox. Is this the case?

beeZentral’s picture

StatusFileSize
new23.05 KB

No, the resource is not pre-selected and the field is disabled:

select name="resource_id" disabled="disabled"

beeZentral’s picture

here is a screenshot from the resource view.

My jquery version is 1.4.1, jquery ui: 1.7.3
DateAPI: 6x.27

tell me, if you need additional infos!

thank you

Anonymous’s picture

Is it working with the dev-release? I fixed a bug that could result in this problem and I'd like to know whether its the same ;)

beeZentral’s picture

:) yes, i know, but i'm sure this is the -alpha1-release.

when i try to place a request without an ID in url, after submitting i get this message:

"A conflict occured while saving your request. Please try again in a few minutes"

Anonymous’s picture

Could you test updating to the -dev-release? I don't want to fix the same bug twice ;)

dipen chaudhary’s picture

Seems to be working fine in 3.x-dev but broken in the recommended version i.e. alpha-1. Would you mind creating a release coz it directly affects the functionality provided in the recommended version linked from project page.

Anonymous’s picture

can do. Is Tuesday okay? Then I could check the release again :)

easyRider’s picture

Version: 6.x-3.0-alpha1 » 6.x-3.0-alpha2

have the same problem 6.x-3.0-alpha2

Using button check availability i get this error: ""Error, invalid data, need resource_id""

Anonymous’s picture

What? Are you sure that you used alpha2 and that you selected a resource? Maybe I borged some code, but it is working here :/

If yes - which version of PHP, apache or another webserver?

easyRider’s picture

StatusFileSize
new52.85 KB

Hi:
PHP Version 5.2.14 and Apache Web server
Using:
- publicbookings-6.x-3.0-alpha2.tar.gz
- bookingsapi-6.x-3.0-alpha2.tar.gz

I'm using the direct booking button wich preselects the resourse.

Anyway in admin public bookings, i have the same problem and if i try to create the booking withou checking availability i get a HTTP Error 500 (Internal Server Error).

Thank you for your quick answer.

Anonymous’s picture

StatusFileSize
new877 bytes

Could you test the attached (quick and dirty) patch? Yes, there would be better ways to fix this then to enable,select,disable the resource-field - but ATM I don't know how to fix this, and I don't have much time :(

Anonymous’s picture

Status: Active » Needs review

Appologies ...

easyRider’s picture

Dont worry i'll test it tomorow, thank you very much for your time.

easyRider’s picture

Status: Needs review » Fixed

Hi, I applied the patch, now works perfectly. Thanks

creatorgr’s picture

I have an issue too.
Ok I have applied the patch and the "check availability" button works fine and says "No conflicts found" . But when I try to book it returns this message: A conflict occured while saving your request. Please try again in a few minutes. Is something that i missed?

Anonymous’s picture

Hmm, shouldn't happen. You are using the 6.x-3.0-*-release? Are you trying to submit a repeating booking?

creatorgr’s picture

Thank you both for the reply and the module.

My version is 6.x-3.0-alpha2 and i'm using only the main module. I found the problem. When you add a new resource from Home › Administer › Content management > Bookings API Resource it doesn't book! I've tried to create a new one from Public bookings admin menu and it worked. I never tried repeating bookings.

There is one more thing. I want to add new fields to the booking form or change some. Do I have this option? (At least programmaticaly...)

Status: Fixed » Closed (fixed)

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