larssandergreen [Thu, 28 Sep 2023 23:33:54 +0000 (17:33 -0600)]
Fix broken smarty debug regression from #27582
Eileen McNaughton [Fri, 22 Sep 2023 22:35:00 +0000 (10:35 +1200)]
Update debug.tpl to not be noticey with Smarty3
demeritcowboy [Fri, 22 Sep 2023 20:58:15 +0000 (16:58 -0400)]
Merge pull request #27530 from eileenmcnaughton/misc
php8.x Fix notice from adding esm_loader to wrong settings form
colemanw [Fri, 22 Sep 2023 20:09:38 +0000 (16:09 -0400)]
Merge pull request #27576 from colemanw/enter
SearchKit - Save In-place edit when pressing enter
colemanw [Fri, 22 Sep 2023 19:53:38 +0000 (15:53 -0400)]
Merge pull request #27563 from eileenmcnaughton/pro
Remove unreachable code
colemanw [Fri, 22 Sep 2023 19:31:45 +0000 (15:31 -0400)]
SearchKit - Save In-place edit when pressing enter
demeritcowboy [Fri, 22 Sep 2023 17:39:23 +0000 (13:39 -0400)]
Merge pull request #27572 from larssandergreen/Delete-unneeded-test-file
Remove unintentionally added test file
larssandergreen [Fri, 22 Sep 2023 15:23:37 +0000 (09:23 -0600)]
Remove unintentionally added test file
demeritcowboy [Fri, 22 Sep 2023 13:10:23 +0000 (09:10 -0400)]
Merge pull request #27571 from civicrm/5.66
5.66
demeritcowboy [Fri, 22 Sep 2023 12:36:33 +0000 (08:36 -0400)]
Merge pull request #27567 from eileenmcnaughton/action
Loosen action typing - doing nothing is doing something
colemanw [Fri, 22 Sep 2023 12:26:31 +0000 (08:26 -0400)]
Merge pull request #27560 from eileenmcnaughton/event_type
Stop using undefined properties to specify custom data extends values
demeritcowboy [Fri, 22 Sep 2023 12:26:03 +0000 (08:26 -0400)]
Merge pull request #27566 from eileenmcnaughton/price
Fix weight values on PriceSet page
colemanw [Fri, 22 Sep 2023 12:04:23 +0000 (08:04 -0400)]
Merge pull request #27316 from lemniscus/oauth-session-token
Implement OAuthSessionToken
colemanw [Fri, 22 Sep 2023 12:00:19 +0000 (08:00 -0400)]
Merge pull request #27570 from jensschuppe/financialItemEntityTableCampaign
Allow `civicrm_campaign` as `entity_table` for `FinancialItem` API entity
colemanw [Fri, 22 Sep 2023 11:58:58 +0000 (07:58 -0400)]
Merge pull request #27568 from eileenmcnaughton/petition
Fix notice on 'new petition' page
Jens Schuppe [Fri, 22 Sep 2023 09:39:15 +0000 (11:39 +0200)]
Allow `civicrm_campaign` as `entity_table` for `FinancialItem` API entity
Eileen McNaughton [Fri, 22 Sep 2023 08:11:06 +0000 (20:11 +1200)]
Fix notice on 'new petition' page
Eileen McNaughton [Fri, 22 Sep 2023 07:57:17 +0000 (19:57 +1200)]
Loosen action typing - doing nothing is doing something
Eileen McNaughton [Fri, 22 Sep 2023 07:34:26 +0000 (19:34 +1200)]
Fix weight values on PriceSet page
Eileen McNaughton [Fri, 22 Sep 2023 04:03:57 +0000 (16:03 +1200)]
Remove unreachable code
The ContributionRecur::add function throws an error if there
is a problem - it doesn't return an error
Noah Miller [Fri, 22 Sep 2023 04:03:43 +0000 (00:03 -0400)]
update function signature to match that in parent class (recently changed)
Noah Miller [Fri, 22 Sep 2023 03:40:36 +0000 (23:40 -0400)]
replace deleteAll with a delete action, no "where" required
Noah Miller [Fri, 22 Sep 2023 03:39:19 +0000 (23:39 -0400)]
make cardinal more reliable; add a little more info to getFields
make cardinal more reliable; add a little more info to getFields
Noah Miller [Fri, 22 Sep 2023 02:46:10 +0000 (22:46 -0400)]
improve PHPDocs
Noah Miller [Fri, 22 Sep 2023 02:44:46 +0000 (22:44 -0400)]
use getEntityName instead of constant
highfalutin [Fri, 22 Sep 2023 01:41:52 +0000 (18:41 -0700)]
PHPDoc for OAuthSessionToken class
Co-authored-by: colemanw <coleman@civicrm.org>
Noah Miller [Wed, 6 Sep 2023 19:38:09 +0000 (15:38 -0400)]
minor improvements, and add a provider for manual testing
Noah Miller [Tue, 5 Sep 2023 17:55:15 +0000 (13:55 -0400)]
implement OAuthSessionToken, with tests
Eileen McNaughton [Fri, 22 Sep 2023 03:31:25 +0000 (15:31 +1200)]
Merge pull request #27558 from colemanw/noPaths
APIv4 - Remove function that doesn't do anything, add some type hints
Eileen McNaughton [Fri, 22 Sep 2023 02:21:36 +0000 (14:21 +1200)]
Stop using undefined properties to specify custom data extends values
colemanw [Fri, 22 Sep 2023 02:05:07 +0000 (22:05 -0400)]
Merge pull request #27552 from eileenmcnaughton/custom_field_trait
Fix assigning of customGroup data to be more re-usable & use undefined properties less
colemanw [Fri, 22 Sep 2023 01:58:29 +0000 (21:58 -0400)]
APIv4 - Remove function that doesn't do anything, add some type hints
colemanw [Fri, 22 Sep 2023 00:57:26 +0000 (20:57 -0400)]
Merge pull request #27495 from eileenmcnaughton/action_notice
Cast _action to an int
colemanw [Fri, 22 Sep 2023 00:55:53 +0000 (20:55 -0400)]
Merge pull request #27555 from larssandergreen/Fix-{php}-in-hlp-test
Remove {php} in hlp test
Eileen McNaughton [Fri, 22 Sep 2023 00:27:04 +0000 (12:27 +1200)]
Merge pull request #27554 from demeritcowboy/quick-safe
dev/core#4616 - Fix js syntax error on contribution page / nonfunctioning honoree toggle
Eileen McNaughton [Thu, 21 Sep 2023 22:05:49 +0000 (10:05 +1200)]
Fix assigning of customGroup data to be more re-usable
larssandergreen [Thu, 21 Sep 2023 23:53:29 +0000 (17:53 -0600)]
Remove {php} in hlp test
colemanw [Thu, 21 Sep 2023 23:34:27 +0000 (19:34 -0400)]
Merge pull request #27535 from eileenmcnaughton/custom
Simplify CustomField::displayValue to expect an ID & have deprecated handling for anything else
colemanw [Thu, 21 Sep 2023 23:32:53 +0000 (19:32 -0400)]
Merge pull request #27532 from eileenmcnaughton/verify_1
Pass `NULL` instead of a value where function requires a parameter but does not use it
colemanw [Thu, 21 Sep 2023 23:31:54 +0000 (19:31 -0400)]
Merge pull request #27474 from eileenmcnaughton/billing_field
php8.x Remove never-used undeclared property
colemanw [Thu, 21 Sep 2023 23:31:11 +0000 (19:31 -0400)]
Merge pull request #27429 from eileenmcnaughton/ref
Fix unnecessary pass-by-ref, minor code improvements
colemanw [Thu, 21 Sep 2023 23:30:38 +0000 (19:30 -0400)]
Merge pull request #27471 from eileenmcnaughton/smartY
Fix Smarty secure mode for premiums tab
colemanw [Thu, 21 Sep 2023 23:30:18 +0000 (19:30 -0400)]
Merge pull request #27470 from eileenmcnaughton/contribution_form
PHP 8.x always assign taxTerm, ppID - backoffice contribution form
demeritcowboy [Thu, 21 Sep 2023 23:30:13 +0000 (19:30 -0400)]
js syntax error when false
Eileen McNaughton [Mon, 18 Sep 2023 21:05:01 +0000 (09:05 +1200)]
Case _action to an int
There is a lot of code comparing to action which is unsure whether it
is dealing with 2 or '2'. It should be possible to always cast to an int but
I have added deprecation just in case...
colemanw [Thu, 21 Sep 2023 23:23:39 +0000 (19:23 -0400)]
Merge pull request #27016 from eileenmcnaughton/tax
Use token for tax_amount, quick config mode
Seamus Lee [Thu, 21 Sep 2023 22:56:17 +0000 (08:56 +1000)]
Merge pull request #27551 from civicrm/5.66
5.66
Eileen McNaughton [Wed, 20 Sep 2023 21:09:43 +0000 (09:09 +1200)]
Simplify CustomField::displayValue to expect an ID & have deprecated handline for anything else
Seamus Lee [Thu, 21 Sep 2023 22:29:00 +0000 (08:29 +1000)]
Merge pull request #27550 from seamuslee001/ca_config_update
Update CAConfig to use 23.07 version
Seamus Lee [Thu, 21 Sep 2023 22:03:14 +0000 (08:03 +1000)]
Update CAConfig to use 23.07 version
Seamus Lee [Thu, 21 Sep 2023 21:26:40 +0000 (07:26 +1000)]
Merge pull request #27522 from eileenmcnaughton/billing
PHP8.2 Pass variables rather than co-erce properties when caling `AbstractEditPayment:processBillingAddress`
colemanw [Thu, 21 Sep 2023 19:42:21 +0000 (15:42 -0400)]
Merge pull request #27548 from larssandergreen/Remove-templates/CRM/Price/Form/LineItem.tpl
Remove unused templates/CRM/Price/Form/LineItem.tpl
Eileen McNaughton [Thu, 21 Sep 2023 19:15:17 +0000 (07:15 +1200)]
Merge pull request #27540 from eileenmcnaughton/membership_type_edit
[php8.x[ Remove notice-causing code that seems unreachable
larssandergreen [Thu, 21 Sep 2023 18:32:47 +0000 (12:32 -0600)]
Remove unused templates/CRM/Price/Form/LineItem.tpl
Eileen McNaughton [Thu, 21 Sep 2023 04:44:54 +0000 (16:44 +1200)]
Set variables when calling customDataBlock.tpl from MembershipType
Eileen McNaughton [Thu, 21 Sep 2023 04:37:46 +0000 (16:37 +1200)]
Remove notice-causing code that seems unreachable
I really can't find any way this code could be triggered - I think it
might have been quietly broken for years...
colemanw [Thu, 21 Sep 2023 17:38:41 +0000 (13:38 -0400)]
Merge pull request #26529 from samuelsov/adminui3
civicrm_admin_ui: add Profile Copy action
Samuel Vanhove [Thu, 21 Sep 2023 16:08:59 +0000 (12:08 -0400)]
civicrm_admin_ui: add Profile Copy action
colemanw [Thu, 21 Sep 2023 15:03:06 +0000 (11:03 -0400)]
Merge pull request #27546 from demeritcowboy/double-honor
Fix double fieldset for honoree section
demeritcowboy [Thu, 21 Sep 2023 14:26:24 +0000 (10:26 -0400)]
Merge pull request #27545 from civicrm/5.66
5.66
colemanw [Thu, 21 Sep 2023 13:39:35 +0000 (09:39 -0400)]
Merge pull request #27541 from eileenmcnaughton/cid_notice
Always assign noCid when the tpl is included
colemanw [Thu, 21 Sep 2023 13:28:09 +0000 (09:28 -0400)]
Merge pull request #27539 from eileenmcnaughton/class_notice
Remove some copy & paste...
demeritcowboy [Thu, 21 Sep 2023 13:18:58 +0000 (09:18 -0400)]
true
demeritcowboy [Thu, 21 Sep 2023 12:55:20 +0000 (08:55 -0400)]
Merge pull request #27446 from demeritcowboy/upgrade-multi-default-566
Add missing upgrade script for multilingual defaults
demeritcowboy [Thu, 21 Sep 2023 12:53:57 +0000 (08:53 -0400)]
Merge pull request #27544 from eileenmcnaughton/badge56
Add weights on badge layout links
Eileen McNaughton [Thu, 21 Sep 2023 09:49:25 +0000 (21:49 +1200)]
Add weights on badge layout links
Tim Otten [Thu, 21 Sep 2023 08:16:17 +0000 (01:16 -0700)]
Merge pull request #27513 from eileenmcnaughton/mailing
dev/core#4567 Add mailing_id, is_test to civicrm_mailing_event_queue
Eileen McNaughton [Thu, 21 Sep 2023 07:06:54 +0000 (19:06 +1200)]
Merge pull request #27542 from civicrm/5.66
5.66
Eileen McNaughton [Thu, 21 Sep 2023 05:19:43 +0000 (17:19 +1200)]
Always assign noCid when the tpl is included
Fixes notices by moving the assign out of the function that adds the form elements
This one only matters when smarty is in secure mode:
Eileen McNaughton [Thu, 21 Sep 2023 04:31:18 +0000 (16:31 +1200)]
Merge pull request #27483 from eileenmcnaughton/8_notice
Php 8.x clean up notices on Profiles
Eileen McNaughton [Thu, 21 Sep 2023 04:22:35 +0000 (16:22 +1200)]
Remove some copy & paste...
Class is never in the rows array - this is copy & paste
Eileen McNaughton [Thu, 21 Sep 2023 03:22:05 +0000 (15:22 +1200)]
Merge pull request #27533 from eileenmcnaughton/hash_less
CiviMail - Generate email auth-code as random string
Eileen McNaughton [Mon, 18 Sep 2023 05:37:31 +0000 (17:37 +1200)]
php8.x Fix notices on displaying FieldSet
Eileen McNaughton [Mon, 18 Sep 2023 05:15:11 +0000 (17:15 +1200)]
Stop using mode as magic for showing the fieldset
Eileen McNaughton [Thu, 21 Sep 2023 02:43:31 +0000 (14:43 +1200)]
Loosen regex
Eileen McNaughton [Thu, 21 Sep 2023 02:11:49 +0000 (14:11 +1200)]
Merge pull request #27536 from totten/master-getclass
PHP 7.x - Use get_class() instead of $object::class
Eileen McNaughton [Thu, 21 Sep 2023 02:11:30 +0000 (14:11 +1200)]
Merge pull request #27537 from eileenmcnaughton/recur
Fix mistake from last week on string wrangling
Eileen McNaughton [Thu, 21 Sep 2023 01:31:19 +0000 (13:31 +1200)]
Fix mistake from last week on string wrangling
This came from
https://github.com/civicrm/civicrm-core/pull/27419
Tim Otten [Thu, 21 Sep 2023 01:23:44 +0000 (18:23 -0700)]
PHP 7.x - Use get_class() instead of $object::class
Tim Otten [Thu, 21 Sep 2023 01:08:16 +0000 (18:08 -0700)]
CiviMail - Fixup edge-case chars. Use consistent function.
1. Base64 can output some funny chars that are awkward in VERP and URL contexts.
Use strict lowercase alphanumeric.
2. The new code was being used for the test mailing - but not for real mailings. They should use same formula.
Eileen McNaughton [Wed, 20 Sep 2023 22:15:31 +0000 (10:15 +1200)]
Merge pull request #27409 from seamuslee001/5.66
[REF] Fix bug caused by recent ACL changes where combination of edit …
Eileen McNaughton [Wed, 20 Sep 2023 09:19:43 +0000 (21:19 +1200)]
Use random string rather than sha string
As discussed on chat
https://chat.civicrm.org/civicrm/pl/r7h6cc7xo78zjgsd8af6ff9tee
this function just generates a hard-to-guess string that is stored
in the civicrm_mailing_event_bounce table. This unique value is
used in conjunction with the unique id value from the table to
determine if it is a match but it's not ever reverse calculated
so we don't need to use a reversable function
Eileen McNaughton [Wed, 20 Sep 2023 19:33:11 +0000 (07:33 +1200)]
Merge pull request #27472 from colemanw/noteForm
API - Improve ACL processing, deprecate `hook_civicrm_notePrivacy`
colemanw [Wed, 20 Sep 2023 18:11:51 +0000 (14:11 -0400)]
Merge pull request #27534 from artfulrobot/artfulrobot-fix-group-removal-count
Stop saying N contacts removed when they were already removed.
Rich Lott / Artful Robot [Wed, 20 Sep 2023 14:11:13 +0000 (15:11 +0100)]
Stop saying N contacts removed when they were already removed.
colemanw [Mon, 18 Sep 2023 23:08:19 +0000 (19:08 -0400)]
Add userId and conditions to hook_civicrm_selectWhereClause signature
colemanw [Mon, 18 Sep 2023 02:58:59 +0000 (22:58 -0400)]
Note - Deprecate hook_civicrm_notePrivacy in favor of hook_civicrm_selectWhereClause
This enables note privacy to be enforced by SearchKit and the API,
and gives an upgrade path for implementations of hook_civicrm_notePrivacy to be refactored out.
colemanw [Mon, 18 Sep 2023 01:56:12 +0000 (21:56 -0400)]
DAO/APIv4 - Optimize ACL clauses
Before: no values passed to BAO::addSelectWhereClause
After: $entityName and $conditions passed.
$entityName is rarely needed, but useful for dynamic entities like ECK.
$conditions contains field/value pairs gleaned from the WHERE clause or ON clause
(depending on how the entity was added to the query)
colemanw [Sun, 17 Sep 2023 22:11:03 +0000 (18:11 -0400)]
API/DAO - Improve permissioning sql clauses: support field names and OR
Before: selectWhereClause was limited to returning arrays of clauses which would be
joined with AND. They could not reference any other fields on the entity.
After: selectWhereClause can return sub-arrays which are joined with OR,
and can reference any field on the entity using {curly_brace} syntax.
Stricter type checking emits noisy deprecations if arrays are expected and strings are given.
colemanw [Sun, 17 Sep 2023 19:59:42 +0000 (15:59 -0400)]
DAO - addSelectWhereClause should always return an array
colemanw [Sun, 17 Sep 2023 18:56:17 +0000 (14:56 -0400)]
Activity - More accurate calculation of permittedActivityTypes
The strict array key comparison seemed wrong, array_diff_key works better.
I was hoping this would be more efficient by skipping the where clause for
privledge users, but it doesn't. Oh well at least this is more correct.
colemanw [Sun, 17 Sep 2023 15:31:52 +0000 (11:31 -0400)]
Make Note.privacy required
Eileen McNaughton [Wed, 20 Sep 2023 07:40:38 +0000 (19:40 +1200)]
Stop passing now-ignored job_id to verify function
Eileen McNaughton [Wed, 20 Sep 2023 09:03:42 +0000 (21:03 +1200)]
Merge pull request #27531 from eileenmcnaughton/verify
CiviMail - VERP should no longer require job_id for verification
Eileen McNaughton [Wed, 20 Sep 2023 07:20:24 +0000 (19:20 +1200)]
Fix verify verp function to cope with job_id having been deleted
This allows the record to be validated based on queue_id & hash
(which is still pretty insane to brute force & allows
us to purge job records
Eileen McNaughton [Tue, 19 Sep 2023 08:23:32 +0000 (20:23 +1200)]
Add mailing_id, is_test to civicrm_mailing_event_queue
Eileen McNaughton [Wed, 20 Sep 2023 04:54:34 +0000 (16:54 +1200)]
Fix notice from adding esm_loader to wrong form
It is on the debugging form - but perhaps it was gonna go here for a bit
Eileen McNaughton [Wed, 20 Sep 2023 04:46:41 +0000 (16:46 +1200)]
Merge pull request #27529 from civicrm/5.66
5.66 to master
Eileen McNaughton [Wed, 20 Sep 2023 04:46:00 +0000 (16:46 +1200)]
Merge pull request #27528 from demeritcowboy/weight-again
Fix weights again on contribution page settings dropdown
Eileen McNaughton [Tue, 19 Sep 2023 21:36:43 +0000 (09:36 +1200)]
PHP8.2 Pass variables rather than co-erce properties when caling AbstractEditPayment:processBillingAddress