Skip to content
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

CRM-17281: Fix pledge miscalculation when total amount covers multiple installments #8540

Closed
wants to merge 2,132 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2132 commits
Select commit Hold shift + click to select a range
aab2552
Merge pull request #9431 from monishdeb/CRM-19676
eileenmcnaughton Nov 23, 2016
4e2be64
CRM-19641 Further Fix
seamuslee001 Nov 23, 2016
5e0b4b7
CRM-19649 - Improve ckeditor config defaults
colemanw Nov 22, 2016
3a57534
CRM-19677: Mailings fail in Multilingual post 4.7.13
monishdeb Nov 22, 2016
0aeed2b
CRM-19676: fix how params are merged
lcdservices Nov 22, 2016
642dd4c
unit test fix
monishdeb Nov 23, 2016
d8f9582
Merge pull request #9434 from seamuslee001/4.7.14-rc
eileenmcnaughton Nov 23, 2016
d4c2682
CRM-19679 fix custom file upload in multi-record set
Nov 23, 2016
0ceea71
CRM-19681, fixed code to respect date filters passed from url for report
pradpnayak Nov 23, 2016
dd56d5d
CRM-19681, fixed static function notice error
pradpnayak Nov 23, 2016
de6a986
CRM-19298 - ensure we get two receipts, with no total line.
jmcclelland Nov 23, 2016
434771c
Merge pull request #9433 from seamuslee001/CRM-19641-b
eileenmcnaughton Nov 23, 2016
79acbc2
CRM-19641 Further Fix
seamuslee001 Nov 23, 2016
cec1762
Merge pull request #9441 from seamuslee001/4.7.14-rc
eileenmcnaughton Nov 23, 2016
04df812
CRM-19298 - fix style error
jmcclelland Nov 23, 2016
df03ce4
Revert CRM-19303 changes
colemanw Nov 23, 2016
dd4b88a
Draft of release notes
agh1 Nov 23, 2016
ace50ad
Added contributor key for matching names to handles
agh1 Nov 24, 2016
65bccb4
added credits (for the pull requests reviewed so far)
agh1 Nov 24, 2016
05b465b
Merge branch '4.7.14-rc' into master
colemanw Nov 24, 2016
13a16f4
CRM-19594 further fix on creating correct line items for memberships
eileenmcnaughton Nov 24, 2016
8e8d287
CRM-19594 another fix on line items for membership.
eileenmcnaughton Nov 24, 2016
017e412
Merge pull request #9444 from eileenmcnaughton/member
eileenmcnaughton Nov 24, 2016
b37b9be
CRM-19683 Can now change word replacements if you have more than one …
johanv Nov 24, 2016
d6ef088
Please the PHP 5.old gods.
johanv Nov 24, 2016
0f07bb0
CRM-19678: No Membership Renewal Activity is created when a Pay Later…
monishdeb Nov 24, 2016
109fb78
Merge pull request #9437 from JMAConsulting/CRM-19681
monishdeb Nov 24, 2016
1c06a4e
Merge pull request #9448 from civicrm/4.7.14-rc
eileenmcnaughton Nov 24, 2016
65e172a
CRM-19594 fix line item memberships for price sets with multiple memb…
eileenmcnaughton Nov 24, 2016
61e8777
Merge pull request #9449 from eileenmcnaughton/member
eileenmcnaughton Nov 24, 2016
426385f
Merge pull request #9450 from civicrm/4.7.14-rc
monishdeb Nov 25, 2016
0ee5581
CRM-19662 - Fix remaining full group by clause
Nov 21, 2016
cbf2bfd
Merge pull request #9446 from johanv/CRM-19683-word_replacement_fix
monishdeb Nov 25, 2016
1111c0f
Fix wrong component id in option value
colemanw Nov 26, 2016
52fa9e7
CRM-19680: Participant.get API generates invalid query when searching…
Nov 28, 2016
b2799a9
Merge pull request #9453 from jitendrapurohit/CRM-19680
monishdeb Nov 28, 2016
99ca38c
Merge pull request #9436 from jitendrapurohit/CRM-19679
monishdeb Nov 28, 2016
4284b86
Update DedupeException.tpl
Nov 25, 2016
09a0e7a
change quotes to backticks
Nov 28, 2016
4d4819b
CRM-19688 Create StateProvince API
JKingsnorth Nov 28, 2016
d65ee9b
Merge pull request #9455 from yashodha/CRM-19686
Nov 28, 2016
a3138c9
CRM-19534 - avoid DB constraint violation if dashboard exists
jmcclelland Oct 18, 2016
b8d8413
CRM-19534 - use better wrapper for getting logged in user contact id.
jmcclelland Oct 18, 2016
df09961
removed extraneous lines and switched to static call.
jmcclelland Oct 19, 2016
cc4988a
add unit test, fix jenkin warning and remove unused array variable
Nov 28, 2016
63cafc3
Fix typo in StateProvince DAO
JKingsnorth Nov 28, 2016
269eee9
Merge pull request #9456 from jitendrapurohit/CRM-19534
monishdeb Nov 28, 2016
c2ce0c2
CRM-19298 - one more style error fixed.
jmcclelland Nov 28, 2016
d86f377
CRM-19556 CiviMember: wording on "current" membership search
agh1 Nov 28, 2016
08e132b
Merge pull request #9447 from monishdeb/CRM-19678
eileenmcnaughton Nov 28, 2016
461ae02
CRM-19298 - hopefully last syntax error
jmcclelland Nov 28, 2016
f6102d1
Merge pull request #9457 from agh1/activemembersearchlabel
eileenmcnaughton Nov 28, 2016
97f643c
Merge pull request #9438 from jmcclelland/CRM-19298
eileenmcnaughton Nov 28, 2016
e853acd
remainder of 4.7.14 release notes and credits
agh1 Nov 29, 2016
8b7037c
CRM-19685: Contacts preferred_mail_format can't be NULL
Nov 29, 2016
f2bca23
CRM-19594 fix line items for separate payments, non-price set
eileenmcnaughton Nov 29, 2016
9ca524a
Merge pull request #9464 from eileenmcnaughton/4.7.14-rc
eileenmcnaughton Nov 29, 2016
ce9cffa
Merge pull request #9467 from civicrm/4.7.14-rc
eileenmcnaughton Nov 29, 2016
04071f0
Merge pull request #9454 from JKingsnorth/CRM-19688
Nov 30, 2016
0de07a1
CRM-19692: Fix js error on Submit Credit Card Contribution form
Nov 30, 2016
2436f78
Merge pull request #9463 from yashodha/CRM-19685
Nov 30, 2016
9c86599
CRM-19621 fix address field to show country & state.
eileenmcnaughton Nov 29, 2016
8dd8e40
CRM-19549 : New pledge data entry page shows hard coded $ for install…
sharique Nov 17, 2016
28461aa
CRM-19549 : added back missing text field, using currency symbol only…
sharique Nov 27, 2016
f8eabee
CRM-19549 : code formatting fixes
sharique Nov 28, 2016
1ac900b
Fix if condition for country
Nov 30, 2016
3045e3f
CRM-19699: PHP7 define DB_DSN_MODE for drush mysqli compat.
mlutfy Nov 30, 2016
091ad57
Merge pull request #9466 from eileenmcnaughton/address
eileenmcnaughton Nov 30, 2016
c14f0ef
Merge pull request #9473 from civicrm/4.7.14-rc
eileenmcnaughton Dec 1, 2016
58d8c7e
CRM-19298, (relates to testing on CRM-19621) fix receipts on separate…
eileenmcnaughton Dec 1, 2016
805b698
Merge pull request #9474 from eileenmcnaughton/memberships
eileenmcnaughton Dec 1, 2016
1fb7bdc
additional fixes
Nov 30, 2016
db7f102
Revert "CRM-19626 - Event Registration page allows registration even …
eileenmcnaughton Dec 1, 2016
be028c5
CRM-19226: Fix loginUrl token in drupal
Dec 1, 2016
6f65f8a
Merge pull request #9477 from eileenmcnaughton/4.7.14-rc
eileenmcnaughton Dec 1, 2016
91f70e7
CRM-19709 - Fix double-escaped quicksearch results
colemanw Dec 1, 2016
7a5edd0
CRM-19709 - Fix html output in Common.js
colemanw Dec 1, 2016
3f8bc42
Merge pull request #9482 from colemanw/CRM-19709-rc
eileenmcnaughton Dec 2, 2016
001b60b
CRM_Utils_HttpClientTest - Use special purpose hostnames
totten Dec 2, 2016
1552ab0
CRM-19711 Bookkeeping report displays pay later items twice
eileenmcnaughton Dec 2, 2016
e290f0a
Merge pull request #9486 from civicrm/4.7.14-rc
eileenmcnaughton Dec 2, 2016
8fd59c2
Include 4.7.14 message template changes
Dec 2, 2016
a6e36d2
Merge pull request #9491 from jitendrapurohit/msg_template
monishdeb Dec 2, 2016
561fc04
Merge pull request #9469 from jitendrapurohit/CRM-19692-4.7.14-rc
monishdeb Dec 2, 2016
b4f6780
CRM-18460 - Contribution Aggregate custom search - use relative date …
MegaphoneJon Apr 21, 2016
f36b948
additional fix
monishdeb Dec 2, 2016
cc82404
Merge pull request #9472 from mlutfy/master-crm19699
monishdeb Dec 2, 2016
c7c54ad
CRM-19649 - Add upgrade message
colemanw Dec 3, 2016
0018094
Merge pull request #9496 from colemanw/4.7.14-rc
colemanw Dec 3, 2016
c32d89b
Merge pull request #9485 from totten/master-httpclienttest
totten Dec 3, 2016
de6447c
Merge pull request #9495 from civicrm/4.7.14-rc
eileenmcnaughton Dec 4, 2016
a3fe848
Merge pull request #9493 from monishdeb/CRM-18460
monishdeb Dec 5, 2016
1765d2b
Merge pull request #9490 from eileenmcnaughton/report
Dec 5, 2016
735eaff
CRM-19298 further fix on templates.
eileenmcnaughton Dec 6, 2016
fcfd7b4
composer.json - Update civicrm-cxn-rpc for PHP 7
totten Dec 6, 2016
ac3ab0e
CRM-19720: typo fixes
Dec 6, 2016
301705f
CRM-19720: more fixes
Dec 6, 2016
025cf9a
replace cj with $ and fix validation error
Dec 6, 2016
f19da9f
Merge pull request #9501 from yashodha/CRM-19720
Dec 6, 2016
3d06f63
CRM-18248 - Set quietMillis to 300 for EntityRef ajax
colemanw Dec 6, 2016
5380467
Merge pull request #9499 from eileenmcnaughton/4.7.14-rc
eileenmcnaughton Dec 6, 2016
dbccfac
Merge pull request #9500 from totten/master-cxnrpc
totten Dec 6, 2016
286a7e5
Wysiwyg js optimizations
colemanw Dec 6, 2016
642d43f
Only load tableHeader.js for authorized users
colemanw Dec 6, 2016
d9d5262
Merge pull request #9401 from jmcclelland/CRM-19656
Dec 7, 2016
2fa4cf8
Merge pull request #9374 from jitendrapurohit/CRM-19048
Dec 7, 2016
b050dfa
Merge pull request #9505 from colemanw/wysiwyg
colemanw Dec 7, 2016
dc667b2
Release notes: Moved contributors to bottom, fixed some contrib names
agh1 Dec 2, 2016
4fb8086
Release notes: Updated through 2016-12-06
agh1 Dec 7, 2016
3120e84
Release notes: moved version notes to folder and updated distmaker
agh1 Dec 7, 2016
54c7658
Release notes: final couple of fixes
agh1 Dec 7, 2016
4e3eab9
Merge pull request #9502 from colemanw/CRM-18248
colemanw Dec 7, 2016
a5dbbc1
Remove pr that was reverted
colemanw Dec 7, 2016
d0aaa02
CRM-19709 - Make status message plain-text
colemanw Dec 7, 2016
3860637
Merge pull request #9443 from agh1/4.7.14-releasenotes
colemanw Dec 7, 2016
c58f284
Merge pull request #9510 from colemanw/CRM-19709-b
colemanw Dec 7, 2016
791c343
Merge pull request #9511 from civicrm/4.7.14-rc
colemanw Dec 7, 2016
35146d6
Correct code docs for CRM_Core_Menu::get()
xurizaemon Dec 8, 2016
2bc6585
Indentationating.
xurizaemon Dec 8, 2016
cd2e715
Minor change
monishdeb Dec 8, 2016
70fcfa2
Merge pull request #9514 from xurizaemon/docfix-20161208a
monishdeb Dec 8, 2016
7f20f38
CRM-19722: Fatal Error: Unknown column 'contribution_source' in 'orde…
Dec 7, 2016
1aedfc9
CRM-19294: Unable to continue on required file field
monishdeb Dec 8, 2016
dc7b39d
CRM-19325 - enable search for contributions that are not in any batch.
johanv Sep 8, 2016
31b88a4
Style error.
johanv Sep 8, 2016
3086e28
optimization
monishdeb Dec 2, 2016
123fe8f
Add unit test
monishdeb Dec 7, 2016
cbd44e9
additonal unit test changes to assert batch contributions
monishdeb Dec 8, 2016
181962c
CRM-19698: fix and improve smart and regular group search
monishdeb Dec 7, 2016
3a48439
additional improvement and unit test
monishdeb Dec 7, 2016
efcfb86
Merge pull request #9492 from monishdeb/CRM-19325
monishdeb Dec 9, 2016
883e1e7
revert operator changes and shift getChildGroupIds() definition
monishdeb Dec 9, 2016
faf9505
CRM-19717: remove inline edit of class from reserved participant status
Dec 9, 2016
8ff43f6
CRM-19743 Ensure that checking for id in sort column works in arrays …
seamuslee001 Dec 9, 2016
c2f3098
Correct labelling of new Short Date format. Refs CRM-19490.
xurizaemon Dec 12, 2016
1a5f154
Merge pull request #9529 from xurizaemon/docfix-CRM19490
eileenmcnaughton Dec 12, 2016
3727336
Fix regression in CRM-19490 where input field wasn't being properly set
seamuslee001 Dec 12, 2016
74ec0dd
Expand test coverage to include specified ordering
seamuslee001 Dec 12, 2016
f816735
Merge pull request #9479 from jitendrapurohit/CRM-19226
monishdeb Dec 12, 2016
fb45cb2
append empty string for currency without symbol
Dec 12, 2016
97de46d
Merge pull request #9518 from monishdeb/CRM-19294
monishdeb Dec 12, 2016
d0b2add
Merge pull request #9525 from seamuslee001/api_order_by_test
monishdeb Dec 12, 2016
29cbd60
Merge pull request #9530 from seamuslee001/CRM-19490-regression-fix
eileenmcnaughton Dec 12, 2016
4d77092
CRM-19755 reverse order of html and text
JoeMurray Dec 12, 2016
3af1403
API Explorer: Make param selection more convenient
colemanw Dec 12, 2016
24cf745
Additional fixes for CRM-19263
Dec 13, 2016
5c7467c
Merge pull request #9506 from monishdeb/CRM-19698
monishdeb Dec 13, 2016
88c1e18
Merge pull request #9532 from jitendrapurohit/CRM-19263
Dec 13, 2016
61b5c8c
Merge pull request #9475 from jitendrapurohit/CRM-19549
monishdeb Dec 13, 2016
3293201
reversed L53 L52 as per @seamuslea request
JoeMurray Dec 13, 2016
d412bcc
Fix group_type filter in Advance Search and api
monishdeb Dec 13, 2016
accc0cd
Change order of body html and text on form
JoeMurray Dec 13, 2016
3e80ffc
tools/scripts/phpunit-ls - Fix PhpStorm lookup of PHPUnit_Framework_T…
totten Dec 14, 2016
8b14f5f
Merge pull request #9531 from civicrm/CRM-19755=1
Dec 14, 2016
3cf708c
add sort order
monishdeb Dec 14, 2016
ffd6a15
Merge pull request #9516 from jitendrapurohit/CRM-19722
monishdeb Dec 14, 2016
601c7a2
CRM-19626: Add min-amount handling to priceset
Dec 8, 2016
24f4fd7
CRM-17410: Using xml on upgrade (not installation) of extension to cr…
Dec 1, 2016
017c1bb
Merge pull request #9523 from jitendrapurohit/CRM-19717
monishdeb Dec 14, 2016
177bb31
Merge pull request #9480 from jitendrapurohit/CRM-17410
monishdeb Dec 14, 2016
f150931
Merge pull request #9428 from jitendrapurohit/CRM-19662
monishdeb Dec 14, 2016
1439610
CRM-19736: PHP 7 printing labels for members
Dec 14, 2016
e0e8e7e
Merge pull request #9517 from jitendrapurohit/CRM-19626-2
Dec 14, 2016
e0b5165
CRM-19048: Fix attached operator search
Dec 14, 2016
13a3ef1
API Explorer: Add more options
colemanw Dec 14, 2016
9575981
API Explorer: Remove redundant clear button for selected options
colemanw Dec 14, 2016
832d5c0
CRM-19764 - Pass context when fetching custom field options
colemanw Dec 14, 2016
0a5c58d
API Explorer: Make return value sortable
colemanw Dec 14, 2016
206f019
Document inconsistent function signature.
xurizaemon Dec 15, 2016
52b84b1
Merge pull request #9540 from colemanw/CRM-19764
colemanw Dec 15, 2016
43fc3f3
Improve error message for "possibly mandatory" exception.
xurizaemon Dec 15, 2016
04f66eb
Merge pull request #9537 from jitendrapurohit/CRM-19048-add
Dec 15, 2016
c4bcf12
Merge pull request #9538 from jitendrapurohit/CRM-19736
Dec 15, 2016
5183020
Merge pull request #9534 from monishdeb/CRM-19333
monishdeb Dec 15, 2016
26e63e4
Merge pull request #9543 from xurizaemon/dev-fieldname_should_possibly
monishdeb Dec 15, 2016
0c6fe5b
CRM-19723 - Add crmIconPicker widget
colemanw Dec 7, 2016
f0fd3a4
CRM-19723 - Update fontAwesome version
colemanw Dec 9, 2016
d721b47
Set version to 4.7.16
totten Dec 15, 2016
b412f76
CRM-19723 - Add field for option_value icon
colemanw Dec 9, 2016
00c2ff9
CRM-19723 - Display activity type icons in ui
colemanw Dec 9, 2016
0b4d420
CRM-19723 - Allow rotation of icons
colemanw Dec 9, 2016
223313a
CRM-19782 - Don't show 'View' link on printed Participant Listing rep…
MegaphoneJon Dec 15, 2016
612b614
Merge pull request #9541 from xurizaemon/CRM-19768-comment_only
colemanw Dec 15, 2016
3f22aa0
Merge pull request #9539 from colemanw/api
colemanw Dec 15, 2016
34273b2
Fix upgrade error with unknown column in option_value table
colemanw Dec 15, 2016
2088b96
Merge pull request #9528 from colemanw/CRM-19723
colemanw Dec 15, 2016
6846f08
Upgrade cleanup - use addColumn utility instead of sql
colemanw Dec 15, 2016
74f5fbc
Merge pull request #9548 from colemanw/Upgrade
colemanw Dec 15, 2016
08ef32f
Merge pull request #9546 from PalanteJon/CRM-19782
Dec 16, 2016
4ba295a
CRM-19413 Fix undefined index test_group when testing mailing
JKingsnorth Dec 16, 2016
194b816
CRM-19723 - Fix activity links
colemanw Dec 16, 2016
8c99c0b
CRM-19723 - Display activity type icons in datatables
colemanw Dec 16, 2016
a4cdf33
Merge pull request #9553 from colemanw/CRM-19723
colemanw Dec 16, 2016
85ade0a
CRM-19777: Edit contribution : wrong decimal separator on total_amount
Dec 16, 2016
c0f9acf
CRM-18472: notice fixes
Dec 19, 2016
f862cea
CRM-16189, added link on contribution view form
pradpnayak Aug 11, 2016
c5c270e
CRM-16189, Added add payment link on contribution search
pradpnayak Aug 11, 2016
0869cad
CRM-16189, changed the label
pradpnayak Aug 11, 2016
fedcd5e
CRM-16189, changed code to return participant id in query
pradpnayak Aug 20, 2016
7fedcca
CRM-16189, fixed sql to retrieve payments and set is_payment=false fo…
pradpnayak Aug 25, 2016
87647fe
CRM-16189, fee amount is not a payment
pradpnayak Aug 25, 2016
ae3a964
CRM-16189, changed function defination
pradpnayak Sep 20, 2016
685dc43
CRM-16189, added link on contribution edit form to record payment for…
pradpnayak Sep 20, 2016
a3a7037
CRM-16189, fixed style and removed white space
pradpnayak Sep 20, 2016
b979e6b
CRM-16189, fixed url link
pradpnayak Sep 20, 2016
2848105
CRM-16189, used api
pradpnayak Sep 20, 2016
deaf00c
CRM-16189, fixed white spaces
pradpnayak Sep 22, 2016
4ba3c75
CRM-16189, fixed jenkins test
pradpnayak Sep 22, 2016
8e50d64
CRM-16189, fixed buutton link for record payment
pradpnayak Sep 26, 2016
545ca07
CRM-16189 Fixed participant payment bug
Edzelopez Dec 19, 2016
961c10e
Merge pull request #9550 from JKingsnorth/CRM-19413
Dec 19, 2016
b74fe88
Merge pull request #9558 from yashodha/CRM-18472
Dec 19, 2016
bfee51f
Merge pull request #9535 from totten/master-phpunit-phpstorm
eileenmcnaughton Dec 19, 2016
56df2d0
CRM-19690 - CRM_Mailing_Tokens - Add TokenProcessor support
totten Nov 30, 2016
e0c7538
CRM-19690 - AbstractTokenSubscriber - Only evaluate tokens that are used
totten Nov 30, 2016
453c7bb
CRM-19690 - MailingJob - Extract findPendingTasks().
totten Dec 7, 2016
ecd95cd
CRM-19690 - CRM_Utils_Token::getAnonymousTokenDetails() - Add missing…
totten Nov 29, 2016
926d841
CRM-19690 - Mailing - Make getTemplates and getVerpAndUrlsAndHeaders …
totten Nov 29, 2016
b4a332a
CRM-19690 - CRM_Mailing_MailingSystemTest - Improve CiviMail test cov…
totten Dec 16, 2016
c618817
CRM-19690 - crmMailingBlockRecipients - Provide selector for more dow…
totten Dec 13, 2016
703875d
CRM-19690 - Declare Mailing.template_type, Mailing.template_options, …
totten Nov 28, 2016
6bc3944
CRM-19690 - Mailing API - Encode and decode `template_options`
totten Dec 2, 2016
fb84048
(NFC) CRM-19690 - Improve code-style and docblocks
totten Dec 20, 2016
487d0f1
Merge pull request #9562 from totten/master-19690-schema
totten Dec 20, 2016
e883a7c
CRM-19789: Re-add qill getter
JKingsnorth Dec 20, 2016
0f2a9bd
CRM-19761 support docx, etc export
lcdservices Dec 20, 2016
40c4673
Merge pull request #9567 from JKingsnorth/CRM-19789
colemanw Dec 21, 2016
0cf3700
Merge pull request #9556 from jitendrapurohit/CRM-19777
monishdeb Dec 21, 2016
eea0a60
OptionValue Api cleanup - remove unnecessary lookup
colemanw Dec 21, 2016
4a4584f
Merge pull request #9569 from colemanw/OptionValue
colemanw Dec 22, 2016
80f8e48
CRM-19690 - CRM_Mailing_Tokens - Remove unused `getTrackOpenUrl`
totten Dec 22, 2016
b4a0d8e
CRM-19690 - CRM_Mailing_TokensTest - Define negative test scenario
totten Dec 22, 2016
2cef7e0
CRM-19690 - MailingJob::deliver() - Remove disabled debug code
totten Dec 22, 2016
5f9481d
CRM-19690 - MailingJob::findPendingTasks() - Tweak style
totten Dec 22, 2016
0ba33ff
CRM-19690 - CRM_Mailing_{Action,}Tokens - Docblock tweak
totten Dec 22, 2016
0682aca
CRM-19734 Custom fields display wrongly on Case View page (#9559)
alifrumin Dec 22, 2016
68b4ca5
Merge pull request #9563 from totten/master-19690-tokens
totten Dec 23, 2016
d9553c2
CRM-19585, created unction to calculate financial item amount when co…
pradpnayak Dec 22, 2016
351b3e5
Merge pull request #9568 from lcdservices/CRM-19761
monishdeb Dec 23, 2016
b6c8057
CRM-19288, fixed civicrm_contribution.tax_amount value for multiple p…
pradpnayak Dec 15, 2016
6704d98
CRM-19288, added test to check tax amount for multiple participant
pradpnayak Dec 22, 2016
4e098b3
Merge pull request #9564 from totten/master-19690-cleanup
totten Dec 23, 2016
fab6656
Merge pull request #8870 from JMAConsulting/CRM-16189-10
monishdeb Dec 27, 2016
7f90d11
Merge pull request #9545 from JMAConsulting/CRM-19288
monishdeb Dec 27, 2016
ce393e3
Merge pull request #9565 from totten/master-19690-selector
eileenmcnaughton Dec 27, 2016
ae78ec3
Merge pull request #9574 from JMAConsulting/CRM-19585-1
monishdeb Dec 28, 2016
34d388c
Merge pull request #8906 from dejan9393/CRM-19244
monishdeb Dec 28, 2016
edd0586
CRM-17281: Fix pledge miscalculation when total amount is not an inte…
mlutfy Jun 8, 2016
69fbb06
CRM-17281: BAO test for pledge payments where the amount is greater t…
mlutfy Jun 9, 2016
1baf6e6
Merge branch 'master-crm17281' of github.com:mlutfy/civicrm-core into…
mlutfy Dec 28, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
108 changes: 0 additions & 108 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,116 +2,10 @@
*.bak
backdrop/
bower_components
CRM/ACL/DAO
CRM/Activity/DAO
CRM/Auction/DAO
CRM/Campaign/DAO
CRM/Case/DAO
CRM/Case/xml/configuration
CRM/Contact/DAO/ACLContactCache.php
CRM/Contact/DAO/Contact.php
CRM/Contact/DAO/ContactType.php
CRM/Contact/DAO/DashboardContact.php
CRM/Contact/DAO/Group.php
CRM/Contact/DAO/GroupContact.php
CRM/Contact/DAO/GroupContactCache.php
CRM/Contact/DAO/GroupNesting.php
CRM/Contact/DAO/GroupOrganization.php
CRM/Contact/DAO/Relationship.php
CRM/Contact/DAO/RelationshipType.php
CRM/Contact/DAO/SavedSearch.php
CRM/Contact/DAO/SubscriptionHistory.php
CRM/Contribute/DAO
CRM/Core/DAO/AllCoreTables.php
CRM/Core/DAO/.listAll.php
CRM/Core/DAO/listAll.php
CRM/Core/DAO/ActionLog.php
CRM/Core/DAO/ActionMapping.php
CRM/Core/DAO/ActionSchedule.php
CRM/Core/DAO/Address.php
CRM/Core/DAO/AddressFormat.php
CRM/Core/DAO/Batch.php
CRM/Core/DAO/Cache.php
CRM/Core/DAO/Component.php
CRM/Core/DAO/Country.php
CRM/Core/DAO/County.php
CRM/Core/DAO/Currency.php
CRM/Core/DAO/CustomField.php
CRM/Core/DAO/CustomGroup.php
CRM/Core/DAO/Dashboard.php
CRM/Core/DAO/Discount.php
CRM/Core/DAO/Domain.php
CRM/Core/DAO/Email.php
CRM/Core/DAO/EntityBatch.php
CRM/Core/DAO/EntityFile.php
CRM/Core/DAO/EntityFinancialTrxn.php
CRM/Core/DAO/EntityTag.php
CRM/Core/DAO/Extension.php
CRM/Core/DAO/File.php
CRM/Core/DAO/FinancialAccount.php
CRM/Core/DAO/FinancialTrxn.php
CRM/Core/DAO/IM.php
CRM/Core/DAO/Job.php
CRM/Core/DAO/JobLog.php
CRM/Core/DAO/LineItem.php
CRM/Core/DAO/LocBlock.php
CRM/Core/DAO/LocationType.php
CRM/Core/DAO/Log.php
CRM/Core/DAO/MailSettings.php
CRM/Core/DAO/Managed.php
CRM/Core/DAO/Mapping.php
CRM/Core/DAO/MappingField.php
CRM/Core/DAO/Menu.php
CRM/Core/DAO/MessageTemplate.php
CRM/Core/DAO/MessageTemplates.php
CRM/Core/DAO/Navigation.php
CRM/Core/DAO/Note.php
CRM/Core/DAO/OpenID.php
CRM/Core/DAO/OptionGroup.php
CRM/Core/DAO/OptionValue.php
CRM/Core/DAO/PaymentProcessor.php
CRM/Core/DAO/PaymentProcessorType.php
CRM/Core/DAO/Persistent.php
CRM/Core/DAO/Phone.php
CRM/Core/DAO/Preferences.php
CRM/Core/DAO/PreferencesDate.php
CRM/Core/DAO/PrevNextCache.php
CRM/Core/DAO/PriceField.php
CRM/Core/DAO/PriceSet.php
CRM/Core/DAO/PriceSetEntity.php
CRM/Core/DAO/PrintLabel.php
CRM/Core/DAO/RecurringEntity.php
CRM/Core/DAO/Setting.php
CRM/Core/DAO/StateProvince.php
CRM/Core/DAO/StatusPreference.php
CRM/Core/DAO/SystemLog.php
CRM/Core/DAO/Tag.php
CRM/Core/DAO/Timezone.php
CRM/Core/DAO/UFField.php
CRM/Core/DAO/UFGroup.php
CRM/Core/DAO/UFJoin.php
CRM/Core/DAO/UFMatch.php
CRM/Core/DAO/Website.php
CRM/Core/DAO/WordReplacement.php
CRM/Core/DAO/Worldregion.php
CRM/Core/I18n/SchemaStructure.php
CRM/Cxn/DAO
CRM/Dedupe/DAO
CRM/Event/Cart/DAO
CRM/Event/DAO
CRM/Friend/DAO
CRM/Grant/DAO
CRM/Mailing/DAO
CRM/Mailing/Event/DAO
CRM/Member/DAO
CRM/PCP/DAO
CRM/Pledge/DAO
CRM/Price/DAO
CRM/Project/DAO
CRM/Queue/DAO
CRM/Report/DAO
CRM/SMS/DAO
CRM/Standalone/OpenID/DAO
bin/setup.conf
civicrm-version.php
civicrm-version.txt
Expand Down Expand Up @@ -143,8 +37,6 @@ tests/phpunit/CiviTest/CiviSeleniumSettings.php
tests/phpunit/CiviTest/civicrm.settings.php
tools/stats/config.php
authors.txt
CRM/Batch/DAO/
CRM/Financial/DAO/
drupal/
WordPress
joomla
Expand Down
19 changes: 11 additions & 8 deletions CRM/ACL/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ class CRM_ACL_API {
*/
public static function check($str, $contactID = NULL) {
if ($contactID == NULL) {
$session = CRM_Core_Session::singleton();
$contactID = $session->get('userID');
$contactID = CRM_Core_Session::getLoggedInContactID();
}

if (!$contactID) {
Expand All @@ -85,6 +84,10 @@ public static function check($str, $contactID = NULL) {
* @param bool $skipDeleteClause
* Don't add delete clause if this is true,.
* this means it is handled by generating query
* @param bool $skipOwnContactClause
* Do not add 'OR contact_id = $userID' to the where clause.
* This is a hideously inefficient query and should be avoided
* wherever possible.
*
* @return string
* the group where clause for this user
Expand All @@ -95,7 +98,8 @@ public static function whereClause(
&$whereTables,
$contactID = NULL,
$onlyDeleted = FALSE,
$skipDeleteClause = FALSE
$skipDeleteClause = FALSE,
$skipOwnContactClause = FALSE
) {
// the default value which is valid for the final AND
$deleteClause = ' ( 1 ) ';
Expand Down Expand Up @@ -132,9 +136,9 @@ public static function whereClause(
)
);

// Add permission on self
if ($contactID && (CRM_Core_Permission::check('edit my contact') ||
$type == self::VIEW && CRM_Core_Permission::check('view my contact'))
// Add permission on self if we really hate our server or have hardly any contacts.
if (!$skipOwnContactClause && $contactID && (CRM_Core_Permission::check('edit my contact') ||
$type == self::VIEW && CRM_Core_Permission::check('view my contact'))
) {
$where = "(contact_a.id = $contactID OR ($where))";
}
Expand Down Expand Up @@ -164,8 +168,7 @@ public static function group(
$includedGroups = NULL
) {
if ($contactID == NULL) {
$session = CRM_Core_Session::singleton();
$contactID = $session->get('userID');
$contactID = CRM_Core_Session::getLoggedInContactID();
}

if (!$contactID) {
Expand Down
72 changes: 27 additions & 45 deletions CRM/ACL/BAO/ACL.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ public static function permissionClause(
'GroupContact' => CRM_Contact_DAO_GroupContact::getTableName(),
);

$session = CRM_Core_Session::singleton();
$contact_id = $session->get('userID');
$contact_id = CRM_Core_Session::getLoggedInContactID();

$where = " {$t['ACL']}.operation = '" . CRM_Utils_Type::escape($operation, 'String') . "'";

Expand Down Expand Up @@ -722,55 +721,15 @@ public static function check($str, $contactID) {
return ($count) ? TRUE : FALSE;
}

/**
* Build a join and where part for a query
*
* @param int $contactId
* @return array - the first key is join part of the query and the second key is the where part of the query
*/
public static function buildAcl($contactId) {
// If there is no $contactId passed return empty ACL join and where clause
if (empty($contactId)) {
return array('', '');
}

$tables = array();
$whereTables = array();
$whereClause = CRM_ACL_BAO_ACL::whereClause(CRM_Core_Permission::VIEW, $tables, $whereTables, $contactId, TRUE);
if (strlen($whereClause)) {
$whereClause = " AND (" . $whereClause . ")";
}

$join = "";
foreach ($whereTables as $name => $value) {
if (!$value) {
continue;
}
if ($value != 1) {
// if there is already a join statement in value, use value itself
if (strpos($value, 'JOIN')) {
$join .= " $value ";
}
continue;
}
}

return array(
$join,
$whereClause,
);
}

/**
* @param $type
* @param $tables
* @param $whereTables
* @param int $contactID
* @param bool $strictReturn If there is no where clause build for ACL
*
* @return null|string
*/
public static function whereClause($type, &$tables, &$whereTables, $contactID = NULL, $strictReturn = FALSE) {
public static function whereClause($type, &$tables, &$whereTables, $contactID = NULL) {
$acls = CRM_ACL_BAO_Cache::build($contactID);

$whereClause = NULL;
Expand Down Expand Up @@ -880,7 +839,7 @@ public static function whereClause($type, &$tables, &$whereTables, $contactID =
// call the hook to get additional whereClauses
CRM_Utils_Hook::aclWhereClause($type, $tables, $whereTables, $contactID, $whereClause);

if (empty($whereClause) && !$strictReturn) {
if (empty($whereClause)) {
$whereClause = ' ( 0 ) ';
}

Expand All @@ -903,6 +862,13 @@ public static function group(
$allGroups = NULL,
$includedGroups = NULL
) {
$userCacheKey = "{$contactID}_{$type}_{$tableName}_" . CRM_Core_Config::domainID() . '_' . md5(implode(',', array_merge((array) $allGroups, (array) $includedGroups)));
if (empty(Civi::$statics[__CLASS__]['permissioned_groups'])) {
Civi::$statics[__CLASS__]['permissioned_groups'] = array();
}
if (!empty(Civi::$statics[__CLASS__]['permissioned_groups'][$userCacheKey])) {
return Civi::$statics[__CLASS__]['permissioned_groups'][$userCacheKey];
}

$acls = CRM_ACL_BAO_Cache::build($contactID);

Expand Down Expand Up @@ -953,9 +919,25 @@ public static function group(
) {
$ids = $includedGroups;
}
if ($contactID) {
$groupWhere = '';
if (!empty($allGroups)) {
$groupWhere = " AND id IN (" . implode(',', array_keys($allGroups)) . ")";
}
// Contacts create hidden groups from search results. They should be able to retrieve their own.
$ownHiddenGroupsList = CRM_Core_DAO::singleValueQuery("
SELECT GROUP_CONCAT(id) FROM civicrm_group WHERE is_hidden =1 AND created_id = $contactID
$groupWhere
");
if ($ownHiddenGroupsList) {
$ownHiddenGroups = explode(',', $ownHiddenGroupsList);
$ids = array_merge((array) $ids, $ownHiddenGroups);
}

}

CRM_Utils_Hook::aclGroup($type, $contactID, $tableName, $allGroups, $ids);

Civi::$statics[__CLASS__]['permissioned_groups'][$userCacheKey] = $ids;
return $ids;
}

Expand Down
Loading