Block ID and PCP ID are bugging result on getPcpDashboardInfo function
authorFrederic Guzman <frederickgzmn@gmail.com>
Tue, 6 Sep 2016 20:02:39 +0000 (16:02 -0400)
committerGitHub <noreply@github.com>
Tue, 6 Sep 2016 20:02:39 +0000 (16:02 -0400)
commit743f5cb2384719b4be46a84cb1092896494a7a0e
tree0801ddccca311fe734507980dde6a1a366a1534e
parent87881da309df14ea01de13f2752b27c1d847851b
Block ID and PCP ID are bugging result on getPcpDashboardInfo function

Now you can peek, this query is looking for PCP in database, and showing all tables of civicrm_pcp and civicrm_pcp_block, this include their "ID", it can be fail because depend the configuration of database server the result, i mean, the server will select between pcp_block's(table) ID or pcp's(table) ID(In my case, my database server, selected the block ID instead of PCP ID), it's bad because pcp(table) and pcp_block(table) they has the same ID field name, but, it's good structure schema in database, the problem is the query, and can be solve.
CRM/PCP/BAO/PCP.php