mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Santize id calendar management
This commit is contained in:
@@ -339,7 +339,7 @@ HotelCalendar.prototype = {
|
||||
}
|
||||
this._updateReservation(r);
|
||||
}
|
||||
this._updateReservationsMap();
|
||||
|
||||
this._assignReservationsEvents(toAssignEvents);
|
||||
}.bind(this), addedReservations);
|
||||
|
||||
@@ -1508,7 +1508,8 @@ HotelCalendar.prototype = {
|
||||
}
|
||||
|
||||
// Invalid?
|
||||
if (nreserv.room.id !== uniRoom || (!nreserv.startDate.isSame(dateLimits[1], 'day') && !nreserv.endDate.isSame(dateLimits[0], 'day')))
|
||||
if (nreserv.room.id !== uniRoom || (!nreserv.startDate.isSame(dateLimits[1], 'day') && !nreserv.endDate.isSame(dateLimits[0], 'day')) ||
|
||||
(nreserv.id !== refUnifyReservation.id && nreserv.getUserData('parent_reservation') !== refUnifyReservation.id))
|
||||
{
|
||||
nreserv._html.classList.add('hcal-reservation-invalid-unify');
|
||||
}
|
||||
|
||||
@@ -769,7 +769,7 @@ HotelCalendarManagement.prototype = {
|
||||
},
|
||||
|
||||
_sanitizeId: function(/*String*/str) {
|
||||
return str.replace(/[^a-zA-Z0-9\.\-_:]/g, '_');
|
||||
return str.replace(/[^a-zA-Z0-9\-_]/g, '_');
|
||||
},
|
||||
|
||||
_isNumeric: function(/*?*/n) {
|
||||
|
||||
Reference in New Issue
Block a user