Version 10 Preview Booking system bug
I've set this up side by side with V9 and most parts are working without hitch but the booking system will not load the bookings into the grid.
The weekview and day view work fine just the main page where the actual bookings can be made.
Chrome developer tools gives me 2 errors on this page although the line references will change depending on the number of defined resources (This is with a single room as a test):
- Line 291 Uncaught SyntaxError: Unexpected identifier
- Line 294 Uncaught ReferenceError: resource is not defined (anonymous function)
I think I have traced the second error to an unassigned value in the resource variables named 'rooms'. I have put below the code that it applies to.
Line 291 contains this
Line 294 has this with the empty brackets in red that I think may be causing the problem.
function resource(name, type, years, quantities, readonly, multiroom, maxlessons, rooms, disclaimer, canshare, notes, allowance)
There doesn't appear to be a place in the config for this.
new resource("Test", "Room", [ "Year 7", "Year 8", "Year 9" ], [ "20" ], false, true, "0", [ ], "", false, false, null)