Page 1 of 1

URGENT HELP NEEDED-MULTIPL SEARCH FIELDS for 1 option

PostPosted: 27 Dec 2013, 14:12
by anik1
Hi,
Just installed your software. Have a problem with the "Search Fields" on the main page i.e When you simply choose the "Property Type" for your search,it creates multiple boxes of the "Property Type", even after you select the desired option in all the boxes, and then move to next Search Option field i.e" Section",it agains creates multiple fields of "Section", and correspondingly multiple sections of "City","Price range"..............

The URL of our website is : "http://homesonrent.in/"

This happens with all the browser i.e Firefox 26.0,Chrome,IE11. I'm using windows7.

Really need your help to get this one fixed asap..Please help...

Re: URGENT HELP NEEDED-MULTIPL SEARCH FIELDS for 1 option

PostPosted: 30 Dec 2013, 11:10
by fisher
Hello.
Please try to disable js/css minifier.

Open a protected/config/main.php file
Comment the code:
1.
Code: Select all
'controllerMap'=>array(
    'min'=>array(
        'class'=>'ext.minScript.controllers.ExtMinScriptController',
    ),
),
 

2.
Code: Select all
'clientScript'=>array(
    'class'=>'ext.minScript.components.ExtMinScript',
    'minScriptLmCache' => (YII_DEBUG) ? 0 : 3600,
    'minScriptDisableMin' => array('/[-\.]min\.(?:js|css)$/i', '/bootstrap.js$/i', '/jquery.js$/i', '/ckeditor.js$/i', '/[-\.]pack\.(?:js|css)$/i'),
),
 


and

instead of:
Code: Select all
'useMinify' => true, 

write:
Code: Select all
'useMinify' => false, 


And clear site's cache

Re: URGENT HELP NEEDED-MULTIPL SEARCH FIELDS for 1 option

PostPosted: 11 Jan 2014, 11:32
by Xpycm
Solution.

Open /protected/views/site/_search_form.php file.

Instead of:
Code: Select all
if(isset($this->objType) && $this->objType){
    $searchFields = SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => $this->objType));
    if(!$searchFields){
        $searchFields = SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => SearchFormModel::OBJ_TYPE_ID_DEFAULT));
    }
}
 else {
    $searchFields = SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => SearchFormModel::OBJ_TYPE_ID_DEFAULT));
}
 


Write:
Code: Select all
if(isset($this->objType) && $this->objType){
    $searchFields = SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => $this->objType), array('group' => 'field'));
    if(!$searchFields){
        $searchFields = SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => SearchFormModel::OBJ_TYPE_ID_DEFAULT), array('group' => 'field'));
    }
}
 else {
    $searchFields = SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => SearchFormModel::OBJ_TYPE_ID_DEFAULT), array('group' => 'field'));
}
 


Open /protected/modules/formeditor/controllers/backend/SearchController.php file

Instead of:
Code: Select all
$elementsForm = SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => $objTypeId)); 


Write:
Code: Select all
$elementsForm SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => $objTypeId), array('group' => 'field')); 

Re: URGENT HELP NEEDED-MULTIPL SEARCH FIELDS for 1 option

PostPosted: 08 Feb 2014, 19:18
by yuuuyuuuyeter
Hello.
I am using Open Real Estate FREE 1.7.1
but I can't find "/protected/modules/formeditor/controllers/backend/SearchController.php" file
in Open Real Estate FREE 1.7.1 doesn't exist "/formeditor/" folder.
Where can I find and replace;
Code: Select all
 $elementsForm SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => $objTypeId), array('group' => 'field'));   

Instead of;
Code: Select all
 $elementsForm SearchFormModel::model()->sort()->findAllByAttributes(array('obj_type_id' => $objTypeId));   

Thanks in advance