Errors of the version 1.32.0

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.32.0

Postby support » 05 Apr 2020, 17:07

Errors of the version 1.32.0
Last edited by support on 17 Apr 2020, 09:42, edited 1 time in total.
Posts: 136
Joined: 28 Dec 2011, 13:14
Reputation point: 0

Re: Errors of the version 1.32.0

Postby andipas » 09 Apr 2020, 11:01

To setting the visual editor for the ”Description” field, run the SQL command in the database. Instead of "PREFIX_" substitute your prefix for the table.
Code: Select all

`PREFIX_configuration` (`id`, `type`, `section`, `name`, `value`, `allowEmpty`, `date_updated`) VALUES
(NULL,    'bool',    'apartment',    'descriptionUseEditor',    '1',    0,    '2020-03-29 14:50:19');

To work the table view in Free and BASIC versions, you need to make the following changes in the files:

In protected / helpers / HApartment.php
after code:
Code: Select all

    public static function getLocationString
(Apartment $model, $sep = ', ', $withAddress = false)

Code: Select all

(issetModule('tariffPlans') && !TariffPlans::checkAllowShowAddress()){
            return Yii::t('module_tariffPlans', 'Please <a href="{n}">change the tariff plan</a> to view', Yii::app()->controller->createUrl('/tariffPlans/main/index'));

In the file themes/atlas/views/modules/apartments/views/widgetApartments_list_table.php

Change the code:
Code: Select all

'header' => tt('Address''apartments'),
'type' => 'raw',
'value' => 'TariffPlans::checkAllowShowAddress() ? CHtml::encode(HApartment::getLocationString($data, ", ", true)) : Yii::t(\'module_tariffPlans\', \'Please <a href="{n}">change the tariff plan</a> to view\', Yii::app()->controller->createUrl(\'/tariffPlans/main/index\'))',
'visible' => $canShowAddress,
'htmlOptions' => array('class' => 'ap-view-table-address'),

Code: Select all

                'header' => tt('Address', 'apartments'),
                'type' => 'raw',
                'value' => 'HApartment::getLocationString($data, ", ", true)',
                'visible' => $canShowAddress,
                'htmlOptions' => array('class' => 'ap-view-table-address'),
Web Developer
Web Developer
Posts: 156
Joined: 28 Dec 2011, 22:37
Reputation point: 1

Return to Issues

Who is online

Users browsing this forum: No registered users and 2 guests