Code improvement and text update
This commit is contained in:
@@ -291,7 +291,7 @@ class AdminHotelFeaturePricesSettingsController extends ModuleAdminController
|
||||
false,
|
||||
$idFeaturePrice
|
||||
);
|
||||
} elseif (isset($isSpecialDaysExists) && $isSpecialDaysExists == 1) {
|
||||
} elseif ($isSpecialDaysExists) {
|
||||
if ($jsonSpecialDays != "false") {
|
||||
$isPlanTypeExists = $objFeaturePricing->checkRoomTypeFeaturePriceExistance(
|
||||
$roomTypeId,
|
||||
@@ -361,14 +361,10 @@ class AdminHotelFeaturePricesSettingsController extends ModuleAdminController
|
||||
if ($dateTo < $dateFrom) {
|
||||
$this->errors[] = $this->l('Date To must be a date after Date From.');
|
||||
}
|
||||
if (isset($isSpecialDaysExists) && $isSpecialDaysExists == 1) {
|
||||
$isSpecialDaysExists = 1;
|
||||
if ($isSpecialDaysExists) {
|
||||
if (!isset($specialDays) || !$specialDays) {
|
||||
$isSpecialDaysExists = 0;
|
||||
$this->errors[] = $this->l('Please select at least one day for week days restriction.');
|
||||
}
|
||||
} else {
|
||||
$isSpecialDaysExists = 0;
|
||||
}
|
||||
} else {
|
||||
if ($specificDate == '') {
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
|
||||
<div class="form-group week_days" {if (isset($smarty.post.is_special_days_exists) && $smarty.post.is_special_days_exists) || (isset($objFeaturePrice->is_special_days_exists) && $objFeaturePrice->is_special_days_exists)}style="display:block;"{/if}>
|
||||
<label for="Price Impact Way" class="control-label col-lg-3">
|
||||
{l s='Week days' mod='hotelreservationsystem'}
|
||||
{l s='Select Week Days' mod='hotelreservationsystem'}
|
||||
</label>
|
||||
<div class="col-lg-3 checkboxes-wrap">
|
||||
<div class="day-wrap">
|
||||
|
||||
Reference in New Issue
Block a user