Merge pull request #2659 from jitendra-webkul/1.0

Issue #2658 fixed
This commit is contained in:
Jitendra Singh 2020-03-16 11:03:00 +05:30 committed by GitHub
commit 355a6a5c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -102,9 +102,9 @@ class BookingProductRepository extends Repository
}
if (! $bookingProductTypeSlot) {
$this->typeRepositories[$data['type']]->create(array_merge($data['slots'], ['booking_product_id' => $id]));
$this->typeRepositories[$data['type']]->create(array_merge($data, ['booking_product_id' => $id]));
} else {
$this->typeRepositories[$data['type']]->update($data['slots'], $bookingProductTypeSlot->id);
$this->typeRepositories[$data['type']]->update($data, $bookingProductTypeSlot->id);
}
}
}
@ -147,7 +147,7 @@ class BookingProductRepository extends Repository
public function validateSlots($data)
{
if (! isset($data['same_slot_all_days'])) {
return $data;
return $data['slots'];
}
if (! $data['same_slot_all_days']) {