TechieWils Posted February 5, 2013 Posted February 5, 2013 I have upgraded to version 8.7 and when logged in as a domain admin I cannot override any static bookings although I can cancel normal bookings and make bookings on behalf of people. When I try to override I get the normal form but the lesson drop down menu is blank where it is filled in on a standard booking. (see attahced) As always thank you.
nickbro Posted February 5, 2013 Posted February 5, 2013 Hmm I think I know why that does that, it's because the lesson you are overriding isn't free
nickbro Posted February 5, 2013 Posted February 5, 2013 Try this to fix it: ~/bookingsystem/default.aspx: line 342 should read } catch (e) { } change it to: } catch (e) { $("#bfmultilesson").hide(); canmulti = false; }
TechieWils Posted February 5, 2013 Author Posted February 5, 2013 You are correct the room does have a static booking in but in v7 I was able to override static bookings, was this removed? Tried adding the code you posted and restarted IIS and it had no effect. Thank you
TechieWils Posted February 5, 2013 Author Posted February 5, 2013 It looks like I got it working going from your lead but I'll be completely honest I have no idea if I've broken something else. ~/bookingsystem/default.aspx: line 336 reads canmulti = true; } else { $("#bfmultilesson").hide(); canmulti = false; } } catch (e) { $("#bfmultilesson").hide(); canmulti = false; } I change it to: canmulti = false; } else { $("#bfmultilesson").hide(); canmulti = false; } } catch (e) { $("#bfmultilesson").hide(); canmulti = false; }
nickbro Posted February 5, 2013 Posted February 5, 2013 Odd, can't see any difference there, here is some corrected code: try { if (curres.MultiRoom) { $("#bfmultilesson").show(); $("#bfmultiroom option").remove(); var l1 = false; var l2 = ""; var l3 = 0; var i = 0; for (i = 0; i < curres.Data.length; i++) { if (!l1) l1 = (curres.Data[i].Lesson == lesson); if (l1) { l3++; if ( (curres.MaxLessons > 0 && l3 > curres.MaxLessons) || (l3 > availbookings[0] && availbookings[0] > 0 ) || curres.Data[i].Name != "FREE") { break; } $("#bfmultiroom").append('' + l3 + ' Lesson' + (l3 == 1 ? '' : 's') + ''); l2 += curres.Data[i].Lesson + ','; } } if (i == 0) { canmulti = false; $("#bfmultilesson").hide(); } canmulti = true; } else { $("#bfmultilesson").hide(); canmulti = false; } } catch (e) { $("#bfmultilesson").hide(); canmulti = false; }
nickbro Posted February 5, 2013 Posted February 5, 2013 Sorry, this is the correct code: try { if (curres.MultiRoom) { $("#bfmultilesson").show(); $("#bfmultiroom option").remove(); var l1 = false; var l2 = ""; var l3 = 0; for (var i = 0; i < curres.Data.length; i++) { if (!l1) l1 = (curres.Data[i].Lesson == lesson); if (l1) { l3++; if ( (curres.MaxLessons > 0 && l3 > curres.MaxLessons) || (l3 > availbookings[0] && availbookings[0] > 0 ) || curres.Data[i].Name != "FREE") { break; } $("#bfmultiroom").append('' + l3 + ' Lesson' + (l3 == 1 ? '' : 's') + ''); l2 += curres.Data[i].Lesson + ','; } } if (l2 == "") { canmulti = false; $("#bfmultilesson").hide(); } canmulti = true; } else { $("#bfmultilesson").hide(); canmulti = false; } } catch (e) { $("#bfmultilesson").hide(); canmulti = false; }
TechieWils Posted February 6, 2013 Author Posted February 6, 2013 I tried the above code and it restored the ability to multi book rooms which are free but I can not override bookings that are static.
nickbro Posted February 6, 2013 Posted February 6, 2013 Ok, you may need to turn off the multi-lesson booking mode on that resource
TechieWils Posted February 6, 2013 Author Posted February 6, 2013 Sorry how do you turn it off per resource?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now