Merge pull request #3260 from jitendra-webkul/1.0
Issue fixed if booking product is null
This commit is contained in:
commit
e156fa95fc
|
|
@ -157,14 +157,10 @@
|
|||
},
|
||||
|
||||
created: function() {
|
||||
if (this.booking.available_from) {
|
||||
this.booking.available_from = "{{ $bookingProduct->available_from->format('Y-m-d H:i:s') }}";
|
||||
}
|
||||
this.booking.available_from = "{{ $bookingProduct && $bookingProduct->available_from ? $bookingProduct->available_from->format('Y-m-d H:i:s') : '' }}";
|
||||
|
||||
|
||||
if (this.booking.available_to) {
|
||||
this.booking.available_to = "{{ $bookingProduct->available_to->format('Y-m-d H:i:s') }}";
|
||||
}
|
||||
this.booking.available_to = "{{ $bookingProduct && $bookingProduct->available_to ? $bookingProduct->available_to->format('Y-m-d H:i:s') : '' }}";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue