I implemented the patch i CRM-8997 but did not see any effect in contact relationship tab. So I did some changes in link_to_original_code/CRM/Contact/BAO/Relationship.php:
static function makeURLClause( $contactId, $status, $numRelationship, $count, $relationshipId, $direction )