-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pcp api #9012
Pcp api #9012
Conversation
---------------------------------------- * CRM-19123: Merging contacts: blank date fields write as 1970 https://issues.civicrm.org/jira/browse/CRM-19123
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.
…s id rather than the contact name
…s are inaccurate.
Fix up upgrade script and add a system check rerun regen after rebasing WIP on adding data type for option group Further work on soft fail when option value value field doesn't match given data type
Re run regen.sh
…type also minor code changes as suggested on PR
…rom the check when saving the option value form and re run regen.sh
Can one of the admins verify this patch? |
(NFC) CRM-19270 Fix contact page ajax test as no array_column in php5.3
CRM-17789 - CRM_Custom_Form_Group - Simplify reltype list
(NFC) CRM-19323: Advanced search relationship date clause description…
(NFC) Fix post upgrade message for 4.7.11
Checked. The change is actually minimal: // line 171 |
hmm - that issue is specific to the new api rather than the #8697 patch in general? I feel like that issue got solved in one of the other PRs at one point |
I think the answer is on #7878 - a fix / hack at the api layer allows the fn to be pcp_get instead of p_c_p_get ...http://civicrm.stackexchange.com/questions/3030/incoporating-pcps-in-wordpress/3037#3037 - |
The issue is that an error is raised in civicrm/api/v3/Generic.php line 111 (civicrm_api3_generic_getfields) when it validates fields. |
Did you look at that thread from the comment thread on there... "There's some odd line of hyphens at the bottom, leave that off! Next, in civicrm/api/v3/util.php, you should see a part that looks like: // FIXME: DAO names should follow CamelCase convention if ($name == 'Im' || $name == 'Acl' || $name == 'Pcp') {" |
… fn. This add function is really wierd & blocking writing an api for pcp - this will get past issues in civicrm#7878
@ggargani @eileenmcnaughton I have fixed the field issue it was found by Jon but never committed I have pushed fixes to Eileen's PR and made a PR for a pcp api that is more complete IMO #9045 |
I dont see unit test in your commit. I removed the create and delete from my implementation because without PR #8697 (allow create api to actually creare a pcp row instead a pcp_block one) and a fix for the undefined index error due to the field validation routines(civicrm_api3_generic_getfields,_civicrm_api3_build_fields_array for example), looking for p_c_p_id as unique name (instead of pcp_id as defined in DAO), we cant successfully run the create test. |
@ggargani I have updated #8697 I have fixed it by changing api/api.php and api/v3/utils.php to conform I ran the syntax conformance tests which auto included my version of the PCP api and they all passed with my amendment to Eileen's PR. Once Eileen's PR. |
CRM-18191 CRM-19064 refactor bizareness from PCP create to enable api…
Hi, This PR is getting blocked before the unit tests actually start - on a style issue - see https://test.civicrm.org/job/CiviCRM-Core-PR/11616/checkstyleResult/new/ There are some tests in the SyntaxConformanceTest class that will provide some coverage although it is MUCH preferred to have a specific unit test as well |
CRM-19354 fix fatal on pdf generation if no trxn_id exists
…can't be reached, ERR_INVALID_RESPONSE, File not Found
CRM-19339: Can't create invoice PDF in Chrome and Firefox, This site …
Messed something with rebase, will resubmit a clean pull request |
Can one of the admins verify this patch? |
Resubmitted a cleaner patch built against the last master: #9045 |
This minimal api for Personal Campaign Pages only implements get.
I noticed that the standard create for PCP attempt to create a record in civicrm_pcp_block. Understanding why in order to be able to change this behaviour is beyond the scope of this project