Patch (to be ported)
Project:
LeagueSite
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2011 at 21:01 UTC
Updated:
2 Aug 2011 at 22:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
ayukko commentedSubscribe!
Comment #2
ayukko commentedHi there
I have done a workaround. I have used a module I had installed (I think it is views custom field) which allows you to add calculated fields. I used it to addtow calculated fields to get the values for Goals scored and Goals conceded.
Will wait for the fix for this though.
Comment #3
ParisLiakos commentedCan you share the code you used with custom fields?
I am trying with custom fields right now but all my fields have no value except nid :S
EDIT: Nevermind i was using an argument and forgot about it
Comment #4
threaders commentedI have found the code that needs changing in leaguesite\leaguesite_league\views folder.
Change line 15 of file leaguesite_handler_field_goals_for.inc to be the following:
$for = $values->leaguesite_standings_goals_for_home + $values->leaguesite_standings_goals_for_away;
Change line 15 of files leaguesite_handler_field_goals_against.inc to be the following:
$for = $values->leaguesite_standings_goals_against_home + $values->leaguesite_standings_goals_against_away;
Comment #5
ParisLiakos commentedindeed it works:)
attached the patch
thanks @threaders
Comment #6
ParisLiakos commented