- Posts: 17
- Thank you received: 0
OS Property support center
BugFix on compare list
- Yu Nakamura
- Topic Author
- Offline
- New Member
-
Less
More
8 years 10 months ago #83983
by Yu Nakamura
BugFix on compare list was created by Yu Nakamura
Hello,
I'm running OS Property 2.9.9.
I found and fixed two bugs on compare list.
I report here. Please validate these bug-fixes.
(and if so, I hope these are going to be applied to the following release)
1. For properties with "Call for price", those price are still visible on the compare list.
Line 255 of /components/com_osproperty/classes/compare.html.php
should be :
2. for the "Neighborhood" row, string "N/A" always appears after the neighborhood table.
Line 455 - 460 of /components/com_osproperty/classes/compare.html.php
should be :
I'm running OS Property 2.9.9.
I found and fixed two bugs on compare list.
I report here. Please validate these bug-fixes.
(and if so, I hope these are going to be applied to the following release)
1. For properties with "Call for price", those price are still visible on the compare list.
Line 255 of /components/com_osproperty/classes/compare.html.php
Code:
if($property->price > 0){
Code:
if($property->price_call == 0 and $property->price > 0){
2. for the "Neighborhood" row, string "N/A" always appears after the neighborhood table.
Line 455 - 460 of /components/com_osproperty/classes/compare.html.php
Code:
$neighborhood = HelperOspropertyCommon::loadNeighborHood($comparisionArr[$i]->property->id);
if($neighborhood != ""){
echo $neighborhood;
}else{
echo "N/A";
}
Code:
HelperOspropertyCommon::loadNeighborHood($comparisionArr[$i]->property->id);
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
8 years 10 months ago #84028
by Mr. Dam
Replied by Mr. Dam on topic BugFix on compare list
Hi,
I confirm the first issue, with the second issue, i changed the source code again as below:
Thanks
Dam
I confirm the first issue, with the second issue, i changed the source code again as below:
Code:
ob_start();
HelperOspropertyCommon::loadNeighborHood($comparisionArr[$i]->property->id);
$neighborhood = ob_get_contents();
ob_end_clean();
if($neighborhood != ""){
echo $neighborhood ;
}else{
echo "N/A";
}
Thanks
Dam
The following user(s) said Thank You: Yu Nakamura
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.