OS Property support center

BugFix on compare list

  • Yu Nakamura
  • Topic Author
  • Offline
  • New Member
  • New Member
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
Code:
if($property->price > 0){
should be :
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"; }
should be :
Code:
HelperOspropertyCommon::loadNeighborHood($comparisionArr[$i]->property->id);

Please Log in or Create an account to join the conversation.

More
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:
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. DamNguyen Phu Quan