← All changes
|
admin/helpers/src/task/driver/params/scheduling.php
+4
-1
1.8.13
→
1.8.16
View file →
| @@ -105,9 +105,12 @@ | ||
| 105 | 105 | // do nothing when we're not dealing with a real confirmed and accepted reservation |
| 106 | 106 | return; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - if (!$booking->detectAlterations()) { | |
| 109 | + // check if we are dealing with a RtB where previous booking was "pending" | |
| 110 | + $changedToConfirmed = $booking->getPrevious() && $booking->getPreviousProperty('status') === 'standby'; | |
| 111 | + | |
| 112 | + if (!$booking->detectAlterations() && !$changedToConfirmed) { | |
| 110 | 113 | // do nothing when no significant changes were made to the booking |
| 111 | 114 | return; |
| 112 | 115 | } |
| 113 | 116 | |