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?
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | publicbookings.812150.patch | 877 bytes | Anonymous (not verified) |
| #16 | error-invalid-data-need-resource-id.jpg | 52.85 KB | easyRider |
| #7 | pb23.15.58.png | 23.05 KB | beeZentral |
| request-1.jpg | 17.68 KB | sah62 |
Comments
Comment #1
Anonymous (not verified) commentedThanks, I'll look into it.
Comment #2
dropdollop commentedI had this same problem. I went to sites/all/modules and enabled several date components and it worked just fine.
Comment #3
bryanhidalgo commentedDid 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.
Comment #4
Anonymous (not verified) commentedIt should be working now ...
@needorf: You need to select a ressource (top of the request page) before checking the availability.
Comment #5
beeZentral commentedI 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.
Comment #6
Anonymous (not verified) commentedYou 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?
Comment #7
beeZentral commentedNo, the resource is not pre-selected and the field is disabled:
select name="resource_id" disabled="disabled"
Comment #8
beeZentral commentedhere 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
Comment #9
Anonymous (not verified) commentedIs 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 ;)
Comment #10
beeZentral commented:) 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"
Comment #11
Anonymous (not verified) commentedCould you test updating to the -dev-release? I don't want to fix the same bug twice ;)
Comment #12
dipen chaudhary commentedSeems 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.
Comment #13
Anonymous (not verified) commentedcan do. Is Tuesday okay? Then I could check the release again :)
Comment #14
easyRider commentedhave the same problem 6.x-3.0-alpha2
Using button check availability i get this error: ""Error, invalid data, need resource_id""
Comment #15
Anonymous (not verified) commentedWhat? 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?
Comment #16
easyRider commentedHi:
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.
Comment #17
Anonymous (not verified) commentedCould 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 :(
Comment #18
Anonymous (not verified) commentedAppologies ...
Comment #19
easyRider commentedDont worry i'll test it tomorow, thank you very much for your time.
Comment #20
easyRider commentedHi, I applied the patch, now works perfectly. Thanks
Comment #21
creatorgr commentedI 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?
Comment #22
Anonymous (not verified) commentedHmm, shouldn't happen. You are using the 6.x-3.0-*-release? Are you trying to submit a repeating booking?
Comment #23
creatorgr commentedThank 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...)