Errors of the version 1.25.1

Write about issues that you have found.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Errors of the version 1.25.1

Postby support » 08 Jul 2018, 16:39

Errors of the version 1.25.1
Last edited by support on 06 Oct 2018, 09:14, edited 1 time in total.
support
Citizen
Citizen
 
Posts: 98
Joined: 28 Dec 2011, 13:14
Reputation point: 0

Re: Errors of the version 1.25.1

Postby Foton » 02 Aug 2018, 15:30

Error appears in theme Basis during booking:
Error "Please fix the following input errors:
Check-In Time cannot be blank.
Check-Out Time cannot be blank."

is solve by changing in file themes\basis\views\modules\booking\views\_form.php code
Code: Select all

<div class="full-multicolumn-first col-md-6 col-sm-6 date_z">
        <?php echo $form->labelEx($model, 'date_start'); ?>

        <?php
        if 
(!$model->date_start) {
            if (issetModule('bookingcalendar') && isset($apartment) && $apartment) {
                if (isset($forceStartDay) && $forceStartDay) {
                    $time = $forceStartDay;
                } else {
                    $time = Bookingcalendar::getFirstFreeDay($apartment->id);
                }
            } else {
                $time = time();
            }

            if (Yii::app()->language != 'ru') {
                $model->date_start = date('m/d/Y', $time);
            } else {
                $model->date_start = date('d.m.Y', $time);
                //$model->date_start = Yii::app()->dateFormatter->formatDateTime($time, 'medium', null);
            }
        }
        if (!$isSimpleForm && $useBookingCalendar) {
            $this->widget('application.modules.bookingcalendar.extensions.FFJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'date_start',
                'range' => 'eval_period',
                'language' => Yii::app()->controller->datePickerLang,
                'options' => array(
                    //'showAnim'=>'fold',
                    'dateFormat' => Booking::getJsDateFormat(),
                    'minDate' => 'new Date()',
                ),
                'htmlOptions' => array(
                    'readonly' => 'true',
                    'class' => 'form-control',
                //'id' => 'date_start_' . rand(1, 9999)
                ),
            ));
            echo '<i class="fa fa-calendar" aria-hidden="true"></i>';
        } else {
            $this->widget('application.extensions.FJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'date_start',
                'range' => 'eval_period',
                'language' => Yii::app()->controller->datePickerLang,
                'options' => array(
                    'showAnim' => 'fold',
                    'dateFormat' => Booking::getJsDateFormat(),
                    'minDate' => 'new Date()',
                ),
                'htmlOptions' => array(
                    'readonly' => 'true',
                    'class' => 'form-control'
                ),
            ));
            echo '<i class="fa fa-calendar" aria-hidden="true"></i>';
        }

        ?>
        <?php //echo $form->error($model,'date_start'); ?>
    </div>
    <div class="full-multicolumn-first col-md-6 col-sm-6 date_v">
        <?php echo $form->labelEx($model, 'date_end'); ?>
        <?php
        
/* if(!$model->date_end){
          $model->date_end = Yii::app()->dateFormatter->formatDateTime(time()+60*60*24, 'medium', null);
          } */
        if (!$isSimpleForm && $useBookingCalendar) {
            $this->widget('application.modules.bookingcalendar.extensions.FFJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'date_end',
                'range' => 'eval_period',
                'language' => Yii::app()->controller->datePickerLang,
                'options' => array(
                    //'showAnim'=>'fold',
                    'dateFormat' => Booking::getJsDateFormat(),
                    'minDate' => 'new Date()',
                ),
                'htmlOptions' => array(
                    'readonly' => 'true',
                    'class' => 'form-control',
                //'id' => 'date_end_' . rand(1, 9999)
                ),
            ));
            echo '<i class="fa fa-calendar" aria-hidden="true"></i>';
        } else {
            $this->widget('application.extensions.FJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'date_end',
                'range' => 'eval_period',
                'language' => Yii::app()->controller->datePickerLang,
                'options' => array(
                    'showAnim' => 'fold',
                    'dateFormat' => Booking::getJsDateFormat(),
                    'minDate' => 'new Date()',
                ),
                'htmlOptions' => array(
                    'readonly' => 'true',
                    'class' => 'form-control'
                ),
            ));
            echo '<i class="fa fa-calendar" aria-hidden="true"></i>';
        }

        ?>
        <?php //echo $form->error($model,'date_end');  ?>
    </div>


for
Code: Select all

<div class="full-multicolumn-first col-md-6 col-sm-6 date_z">
        <?php echo $form->labelEx($model, 'date_start'); ?>

        <?php
        if 
(!$model->date_start) {
            if (issetModule('bookingcalendar') && isset($apartment) && $apartment) {
                if (isset($forceStartDay) && $forceStartDay) {
                    $time = $forceStartDay;
                } else {
                    $time = Bookingcalendar::getFirstFreeDay($apartment->id);
                }
            } else {
                $time = time();
            }

            if (Yii::app()->language != 'ru') {
                $model->date_start = date('m/d/Y', $time);
            } else {
                $model->date_start = date('d.m.Y', $time);
                //$model->date_start = Yii::app()->dateFormatter->formatDateTime($time, 'medium', null);
            }
        }
        if (!$isSimpleForm && $useBookingCalendar) {
            $this->widget('application.modules.bookingcalendar.extensions.FFJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'date_start',
                'range' => 'eval_period',
                'language' => Yii::app()->controller->datePickerLang,
                'options' => array(
                    //'showAnim'=>'fold',
                    'dateFormat' => Booking::getJsDateFormat(),
                    'minDate' => 'new Date()',
                ),
                'htmlOptions' => array(
                    'readonly' => 'true',
                    'class' => 'form-control',
                //'id' => 'date_start_' . rand(1, 9999)
                ),
            ));
            echo '<i class="fa fa-calendar" aria-hidden="true"></i>';
        } else {
            $this->widget('application.extensions.FJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'date_start',
                'range' => 'eval_period',
                'language' => Yii::app()->controller->datePickerLang,
                'options' => array(
                    'showAnim' => 'fold',
                    'dateFormat' => Booking::getJsDateFormat(),
                    'minDate' => 'new Date()',
                ),
                'htmlOptions' => array(
                    'readonly' => 'true',
                    'class' => 'form-control'
                ),
            ));
            echo '<i class="fa fa-calendar" aria-hidden="true"></i>';
        }

        ?>
        <?php //echo $form->error($model,'date_start'); ?>
    </div>
    <div class="full-multicolumn-second col-md-6 col-sm-6">
        <?php echo $form->labelEx($model, 'time_in'); ?>
        <?php echo $form->dropDownList($model, 'time_in', HBooking::getTimesIn(), array('class' => 'form-control')); ?>
        <?php //echo $form->error($model,'time_in');   ?>
    </div>
</div>
<div class="form-group row">
    <div class="full-multicolumn-first col-md-6 col-sm-6 date_v">
        <?php echo $form->labelEx($model, 'date_end'); ?>
        <?php
        
/* if(!$model->date_end){
          $model->date_end = Yii::app()->dateFormatter->formatDateTime(time()+60*60*24, 'medium', null);
          } */
        if (!$isSimpleForm && $useBookingCalendar) {
            $this->widget('application.modules.bookingcalendar.extensions.FFJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'date_end',
                'range' => 'eval_period',
                'language' => Yii::app()->controller->datePickerLang,
                'options' => array(
                    //'showAnim'=>'fold',
                    'dateFormat' => Booking::getJsDateFormat(),
                    'minDate' => 'new Date()',
                ),
                'htmlOptions' => array(
                    'readonly' => 'true',
                    'class' => 'form-control',
                //'id' => 'date_end_' . rand(1, 9999)
                ),
            ));
            echo '<i class="fa fa-calendar" aria-hidden="true"></i>';
        } else {
            $this->widget('application.extensions.FJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'date_end',
                'range' => 'eval_period',
                'language' => Yii::app()->controller->datePickerLang,
                'options' => array(
                    'showAnim' => 'fold',
                    'dateFormat' => Booking::getJsDateFormat(),
                    'minDate' => 'new Date()',
                ),
                'htmlOptions' => array(
                    'readonly' => 'true',
                    'class' => 'form-control'
                ),
            ));
            echo '<i class="fa fa-calendar" aria-hidden="true"></i>';
        }

        ?>
        <?php //echo $form->error($model,'date_end');  ?>
    </div>
    <div class="full-multicolumn-second col-md-6 col-sm-6">
        <?php echo $form->labelEx($model, 'time_out'); ?>
        <?php echo $form->dropDownList($model, 'time_out', HBooking::getTimesOut(), array('class' => 'form-control')); ?>
        <?php //echo $form->error($model,'time_out');  ?>
    </div>

Foton
Web Developer
Web Developer
 
Posts: 93
Joined: 26 Jan 2012, 14:58
Reputation point: 1

Re: Errors of the version 1.25.1

Postby cismih » 04 Aug 2018, 12:48

I have tried, to change the code. But same error.
No changes
cismih
Stranger
 
Posts: 6
Joined: 27 Jul 2018, 19:14
Reputation point: 0

Re: Errors of the version 1.25.1

Postby Xpycm » 04 Aug 2018, 22:04

Impossible. You did something wrong. What coding skill you have?
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 243
Joined: 30 Dec 2011, 11:06
Reputation point: 2


Return to Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron