Hi, you might have notice that sorting does not work in extended search. To fix it do this in components/com_estateagent/estateagent.php (line 860 or so).
Replace this existing code:
| Code: |
$sort1[] = mosHTML::makeOption( ' rent', _EA_OBJ_RENT );
$sort1[] = mosHTML::makeOption( ' price', _EA_OBJ_PRICE );
$sort1[] = mosHTML::makeOption( ' space', _EA_OBJ_DWSPACE );
$sort1[] = mosHTML::makeOption( ' rooms', _EA_OBJ_ROOMNR );
$sort1[] = mosHTML::makeOption( ' bedrooms', _EA_OBJ_BEDROOMS );
$sort1[] = mosHTML::makeOption( ' yobuilt', _EA_OBJ_YOBUILT );
|
With this new code:
| Code: |
$sort1[] = mosHTML::makeOption( 'ORDER BY rent', _EA_OBJ_RENT );
$sort1[] = mosHTML::makeOption( 'ORDER BY price', _EA_OBJ_PRICE );
$sort1[] = mosHTML::makeOption( 'ORDER BY space', _EA_OBJ_DWSPACE );
$sort1[] = mosHTML::makeOption( 'ORDER BY rooms', _EA_OBJ_ROOMNR );
$sort1[] = mosHTML::makeOption( 'ORDER BY bedrooms', _EA_OBJ_BEDROOMS );
$sort1[] = mosHTML::makeOption( 'ORDER BY yobuilt', _EA_OBJ_YOBUILT );
|
Regards, Rafael.