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: Fix export crash when custom field name clashes with linked objects #38851

Merged
merged 694 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
694 commits
Select commit Hold shift + click to select a range
a72a738
docker: Re-add xz-utils (#39553)
anomiex Sep 26, 2024
b197708
Bump wc-calypso-bridge to 2.7.1 and add changelog (#39557)
ilyasfoo Sep 27, 2024
051048f
Add/icons for all product cards on dashboard (#39513)
CodeyGuyDylan Sep 27, 2024
e5275d9
Remove/connection nudges where not needed (#39533)
CodeyGuyDylan Sep 27, 2024
f05e3b0
phan: Update wpcom stubs (#39565)
matticbot Sep 27, 2024
6e3017f
wpcom_add_shopping_cart: Use new is_cart_empty function (#39563)
mreishus Sep 27, 2024
4bf833b
Blocks: convert to module (#39449)
kraftbj Sep 27, 2024
4ea9683
Jetpack: Remove WAF deprecation notice (#39568)
nateweller Sep 27, 2024
a17157f
Title Optimization: improve button behavior on error screen (#39554)
lhkowalski Sep 27, 2024
97d34ba
Jetpack: remove excessive hooks from social logos and genericons (#39…
sergeymitr Sep 27, 2024
ed2c5b6
Remove/unnecessary textdomain filter (#39552)
d-alleyne Sep 27, 2024
01cae1e
Jetpack AI Logo generator toolbar button label (#39550)
CGastrell Sep 27, 2024
4257500
Change/at a glance unify connection ctas (#39535)
CodeyGuyDylan Sep 27, 2024
48effe7
Jetpack: remove unused infinite scroll code (#39570)
sergeymitr Sep 27, 2024
4d374d2
Protect: Fix blockedRequests destructuring fallback (#39569)
dkmyta Sep 27, 2024
d80aed4
Protect: Fix overwritten FirewallSubheading updates (#39571)
dkmyta Sep 27, 2024
cce926e
My Jetpack: update notice style on mobile (#39537)
IanRamosC Sep 27, 2024
091d0f9
My Jetpack Welcome Flow: Show default recommendations upfront first, …
elliottprogrammer Sep 27, 2024
d27e586
Jetpack plugin - Story Block: Fix 'Division by zero' Fatal (#39577)
fgiannar Sep 30, 2024
0c1029f
Masterbar: Remove User Info side-panel (#39546)
fgiannar Sep 30, 2024
2284782
Jetpack Sync: Fix a bug in syncing HPOS 'woocommerce_delete_order' ac…
fgiannar Sep 30, 2024
399a1e6
'connect_url_redirect' hook: Redirect to the 'redirect_after_auth' ur…
elliottprogrammer Sep 30, 2024
e6c970a
Fix parameters to allow for connectAfterCheckout flow from recommenda…
robertsreberski Sep 30, 2024
37e4e54
Help Center: use Zendesk staging when proxied (#39566)
arcangelini Sep 30, 2024
34b1678
My Jetpack: fix spacing between price and discount tag (#39576)
IanRamosC Sep 30, 2024
7044f10
Follow Blog Widget: Strip Slashes on Subscribe Text (#39433)
Aurorum Sep 30, 2024
c30a9f7
Fix a case where wp_rand is undefined. (#39581)
zinigor Sep 30, 2024
dae0ae8
Revert "Change/at a glance unify connection ctas (#39535)" (#39584)
CodeyGuyDylan Sep 30, 2024
1c6fcc8
wpcomsh: Move `load_muplugin_textdomain` call to `after_setup_theme` …
anomiex Sep 30, 2024
7a36edb
Social: Add Bluesky connection UI (#39561)
manzoorwanijk Oct 1, 2024
ddc157a
Backport jetpack 13.9-beta Changes (#39587)
zinigor Oct 1, 2024
9cf6988
Changelog and readme.txt edits. (#39598)
gmjuhasz Oct 1, 2024
52715a0
Social: Fix Bluesky not showing up on page load (#39597)
manzoorwanijk Oct 1, 2024
5a3f47c
Email preview: improve error state visually (#39476)
simison Oct 1, 2024
db84164
Jetpack: Check $submenu is not NULL before adding Scan option (#39424)
ecairol Oct 1, 2024
a6f01b4
Update/at a glance unify connection ctas (#39585)
CodeyGuyDylan Oct 1, 2024
189b0aa
Changes the error Blaze shows during sync to be a warning (#39515)
sbarbosa Oct 1, 2024
fd598c1
Update/jetpack settings connection nudges (#39591)
CodeyGuyDylan Oct 1, 2024
87be096
Update dependency core-js to v3.38.1 (#39592)
matticbot Oct 1, 2024
8711b79
Changelog. (#39606)
zinigor Oct 1, 2024
c4a9994
Post-migration Experience: Adds the placeholder task list (#39593)
valterlorran Oct 1, 2024
e174a33
Release WAF 0.20.1. (#39607)
zinigor Oct 1, 2024
abb0266
Update Size-limit to v11.1.6 (#39595)
matticbot Oct 1, 2024
c4f8876
Update dependency uplot to v1.6.31 [SECURITY] (#39610)
matticbot Oct 1, 2024
3c05cde
Protect: Fix last_checked conversions (#39549)
dkmyta Oct 1, 2024
bd4c095
Protect: Improve optimistically scanning (#39538)
dkmyta Oct 1, 2024
365576b
Protect: Minor clean up of scan page index component (#39574)
nateweller Oct 1, 2024
09ea56a
Settings: Newsletter: Adding connection banner to each section (#39539)
grzegorz-cp Oct 2, 2024
6861b10
Admin Menu: Adding tests to test Jetpack admin menu 'current' menu it…
coder-karen Oct 2, 2024
e9b7740
Update Jetpack Scan link (#39619)
candy02058912 Oct 2, 2024
31626b5
wpcomsh: Update translations (#39621)
yuliyan Oct 2, 2024
ac39115
wpcomsh: Update translations (#39623)
yuliyan Oct 2, 2024
1b9d5a2
Backport Jetpack 13.9 changes to readme and CHANGELOG.md. (#39622)
zinigor Oct 2, 2024
83bc22b
Changelog and readme.txt edits. (#39624)
gmjuhasz Oct 2, 2024
9f12123
Connection: initialize assets in wp-admin only (#39604)
sergeymitr Oct 2, 2024
d8dce56
Update wordpress monorepo (#39594)
matticbot Oct 2, 2024
12b5c45
Performance: remove imploding CSS code (#39518)
kraftbj Oct 2, 2024
c52436d
Protect: Update use fixers query error prop handling (#39498)
dkmyta Oct 2, 2024
c347589
wpcomsh: Update wc-calypso-bridge to 2.8.0 (#39613)
mreishus Oct 2, 2024
93856e8
Sitemap: Make sitemap storing more efficient by not querying the full…
oskosk Oct 2, 2024
b1c579d
Shortcodes: Fix warning when attachment src is false in shortcodes mo…
darssen Oct 3, 2024
a16aa72
Boost: Exclude shortcode produced scripts from deferred js (#39616)
haqadn Oct 3, 2024
463ebbc
Roles endpoint: Use instance of for checking wp roles (#39634)
darssen Oct 3, 2024
738afa7
phan: Update custom stubs (#39632)
matticbot Oct 3, 2024
ca958a4
Issue templates: add new issue type option (#39637)
jeherve Oct 3, 2024
9523870
Update dependency photon to v4.1.1 (#39639)
matticbot Oct 3, 2024
9840b57
blogging-prompt: preserve language on answers link (#36730)
myhro Oct 3, 2024
1bd7127
Admin bar: replace 'Edit Profile' and 'My Account' with 'My Profile' …
fushar Oct 4, 2024
bda660b
profile.php: Make wpcom links more concise (#39636)
fushar Oct 4, 2024
cf5426d
Social: Fix share status tooltip text overflow (#39599)
manzoorwanijk Oct 4, 2024
b682b6b
WPCOMSH: Remove redirection from /wp-admin/plugin.php to /plugins/man…
okmttdhr Oct 4, 2024
d3e4a0d
Boost: Fix photon URL check (#39635)
haqadn Oct 4, 2024
5ad9b11
Update dependency @sentry/browser to v8 [SECURITY] (#39640)
matticbot Oct 4, 2024
7588763
e2e tests: update encryption key (#39645)
jeherve Oct 4, 2024
835e7a7
Update VideoPress block connection banner, align with other blocks (#…
CodeyGuyDylan Oct 4, 2024
356d581
WAF: Allow rules to specify body parser type (#39516)
nateweller Oct 4, 2024
bdd124a
Blocks: provide nice error message for workaround in dev env (#39602)
kraftbj Oct 5, 2024
f6e3355
Settings - Newsletter, Sharing: Disabling options for sites missing u…
grzegorz-cp Oct 6, 2024
00e9808
Boost: Use "critical css gen" package from the monorepo (#39509)
dilirity Oct 7, 2024
966b621
Post-migration Experience: Add the "Review the site's content" task (…
valterlorran Oct 7, 2024
65f72a3
Backport changes in JS Packages (#39664)
dilirity Oct 7, 2024
8dd7def
VideoPress: use "Processing" thumbnail placeholder while a new thumbn…
lhkowalski Oct 7, 2024
e9fcecd
Connection: optimize admin_notices owner delete warning (#39650)
sergeymitr Oct 7, 2024
5c3c149
Fix new PHPCompatibility-dev sniff (#39665)
anomiex Oct 7, 2024
3db6dfb
Update dependency cookie to v0.7.0 [SECURITY] (#39649)
matticbot Oct 7, 2024
d9892df
Update dependency mediawiki/mediawiki-codesniffer to v44 (#39648)
matticbot Oct 7, 2024
0555195
Jetpack AI: change logo generator styles source (#39589)
CGastrell Oct 7, 2024
442812f
find_psr4_file: Quick exit if psr4_map is not populated (#39646)
mreishus Oct 7, 2024
77d3717
Update storybook monorepo to v8.3.5 (#39669)
matticbot Oct 7, 2024
eda6b6e
Lock file maintenance (#39653)
matticbot Oct 7, 2024
b8e16b0
WAF: Include waf_supported and automatic_rules_last_updated in the je…
nateweller Oct 7, 2024
27335f9
Jetpack Sync: Add 'woocommerce_analytics_first_activation' in options…
fgiannar Oct 8, 2024
1d820f8
Image CDN: URL encode path parts (#39560)
haqadn Oct 8, 2024
1c223c0
Sync: Don't sync set object terms action for blacklisted taxonomies (…
darssen Oct 8, 2024
a480969
Newsletter: change default reply-to option from "no reply" to "commen…
simison Oct 8, 2024
2888255
Changelog and readme.txt edits. (#39668)
ice9js Oct 8, 2024
0cce8f9
Update dependency express to v4.21.0 (#39670)
matticbot Oct 8, 2024
8e87f72
Sharing: register menu even when user is not connected to wpcom. (#39…
jeherve Oct 8, 2024
da36bdd
explat: Fix Phan issues (#39443)
anomiex Oct 8, 2024
e13f27c
Fix/bug where connection banner shows in p2 (#39667)
CodeyGuyDylan Oct 8, 2024
2f6f76e
Fix blogroll block unhelpful error when user not connected (#39638)
CodeyGuyDylan Oct 8, 2024
b05d1e0
My Jetpack: Fix recommendations VideoPress product card not showing "…
elliottprogrammer Oct 8, 2024
46f683e
Add/jetpack blocks add connection nudge where missing (#39647)
CodeyGuyDylan Oct 8, 2024
5f3830d
Fix/payment blocks connection banner showing on simple sites (#39687)
CodeyGuyDylan Oct 8, 2024
201ee16
Stats: Fix top post card on the Insight page (#39691)
kangzj Oct 9, 2024
e17250e
Social: Update the check to see if Bluesky is already connected (#39661)
manzoorwanijk Oct 9, 2024
5200252
Add check to update post json api to handle null input type (#39676)
darssen Oct 9, 2024
333a224
Prevent welcome tour keyboard navigation from hijacking left right ke…
xavier-lc Oct 9, 2024
dc875c7
Sync my jetpack's Boost page with Boost's getting started page (#39130)
dilirity Oct 9, 2024
e52dc2c
AI Client: change logo generator upgrade message (#39671)
CGastrell Oct 9, 2024
6ef7486
AI Client: add image styles auto and none (#39689)
CGastrell Oct 9, 2024
2ca8e44
Jetpack AI: don't generate first logo without details (#39536)
CGastrell Oct 9, 2024
90b6d88
rolling release: Add timestamp to version numbers (#39701)
anomiex Oct 9, 2024
6f58716
WAF: Avoid using Waf_Rules_Manager from Waf_Runner::initialize() (#38…
nateweller Oct 9, 2024
817ad29
eslint: Enable more react rules (#39421)
anomiex Oct 9, 2024
2c3fe68
jetpack: Render Slideshow block correctly in iframed editor (#39551)
anomiex Oct 9, 2024
6c4f389
Update wordpress monorepo (#39707)
matticbot Oct 9, 2024
bb5c5df
Goodreads Block: Make sure we check for id attribute in the goodreads…
oskosk Oct 10, 2024
cebbf0a
Social: Added Bluesky to social previews (#39659)
manzoorwanijk Oct 10, 2024
d336df2
Admin bar: clean up WPCOM_ADMIN_BAR_UNIFICATION feature flag (#39692)
fushar Oct 10, 2024
0f283f7
Added do_action_deprecated and apply_filters_deprecated to next versi…
darssen Oct 10, 2024
cc2372a
Infinite scroll added checks to validate input (#39618)
darssen Oct 10, 2024
c4052f3
Boost: Fix page cache e2e tests (#39695)
dilirity Oct 10, 2024
2a8637d
Critical CSS Gen: Add missing build folder for production (#39723)
dilirity Oct 10, 2024
27bed98
Boost: Properly update minimum required WP version to 6.5 (#39719)
dilirity Oct 10, 2024
07e4490
Photon: avoid deprecation warnings when src is null (#39685)
jeherve Oct 10, 2024
29cafbb
Jetpack Sync 3.14. (#39724)
zinigor Oct 10, 2024
4cf3a38
VideoPress: Add missing check for empty video_info on get_media_item_…
phcp Oct 10, 2024
7baebfb
Backport Critical css gen 1.0.1 (#39726)
dilirity Oct 10, 2024
b487974
Newsletter: featured image settings UI defaults (#39700)
lezama Oct 10, 2024
766e067
Post-migration Experience: Add the plugin review task (#39711)
valterlorran Oct 10, 2024
8caef96
Backport boost 3.5.2-beta Changes (#39728)
dilirity Oct 10, 2024
3a8b034
Added null check post status obj in sal site class (#39727)
darssen Oct 10, 2024
3efdf01
eslint: Enable `@wordpress/no-base-control-with-label-without-id` rul…
anomiex Oct 10, 2024
4a9e683
eslint: Enable `react/jsx-key` rule (#39709)
anomiex Oct 10, 2024
395d809
Use DEWP's new auto-wp-polyfill support (#39629)
anomiex Oct 10, 2024
95f03a9
Update dependency express to v4.21.1 (#39733)
matticbot Oct 10, 2024
4077100
Jetpack-mu-wpcom plugin banner - update copies (#39725)
Addison-Stavlo Oct 10, 2024
d49b3e7
eslint: Remove `jsx-a11y/label-has-associated-control` override (#39736)
anomiex Oct 10, 2024
312d346
WAF: Handle cases where outdated Waf_Rules_Manager has been autoloade…
nateweller Oct 10, 2024
c763969
Jetpack Sync: Move 'jetpack_plugins_updated' action to shutdown (#39717)
fgiannar Oct 11, 2024
501f539
Site Management Widget: Migrate to react (#39642)
arthur791004 Oct 11, 2024
2bc69b8
Revert "Site Management Widget: Migrate to react (#39642)" (#39741)
arthur791004 Oct 11, 2024
d7eb02b
Site Management Widget: Migrate to react (2nd try) (#39742)
arthur791004 Oct 11, 2024
19c2e09
Update/check post exists under context in widget visibility module (#…
darssen Oct 11, 2024
f7ed93a
Jetpack iCalendarReader: Fix Undefined array key Warnings (#39740)
fgiannar Oct 11, 2024
1e3c929
Jetpack AI: fix first logo notice (#39705)
CGastrell Oct 11, 2024
ad3323e
AI Client: add style guessing and prompt processing (#39712)
CGastrell Oct 11, 2024
9ab567f
Site Management Widget: Remove unused files (#39743)
arthur791004 Oct 11, 2024
e240fbc
AI Assistant: Make Write Brief no longer flag single quotes as spelli…
mwatson Oct 11, 2024
10e2361
Jetpack: optimize the 'admin_init' hook callback for Sharing module (…
sergeymitr Oct 11, 2024
68a9911
Add/editor blocks add tracks for connection banner (#39732)
CodeyGuyDylan Oct 11, 2024
18aa1e0
Related Posts: check for any single post without regard for post type…
kraftbj Oct 11, 2024
13ebde2
Social Notes: add support for the ActivityPub reply-to block when the…
kraftbj Oct 11, 2024
0f7d9d7
Components: Migrate JetpackProtectLogo component from Jetpack Protect…
nateweller Oct 13, 2024
aa9bc0f
Components: Migrate MarkedLines component from Jetpack Protect (#39674)
nateweller Oct 13, 2024
c3e6cbb
Contact Form: improve security of the form endpoint (#39759)
jeherve Oct 14, 2024
019f244
Jetpack Sync: Ensure Full Sync is only triggered on backend admin POS…
fgiannar Oct 14, 2024
98cfebf
Backport jetpack 14.0-a.3 Changes (#39760)
ice9js Oct 14, 2024
c7f7a6f
Update Autoloader docs to include more limitations. (#39752)
zinigor Oct 14, 2024
1f8d4df
VideoPress: Update VideoPress notice URL on Media Library (#39731)
phcp Oct 14, 2024
f3c86d9
Social Notes: ensure the filter does not impact other CPTs (#39763)
kraftbj Oct 14, 2024
2a9f51f
Post-migration Experience: Add "Connect your domain" task (#39680)
sixhours Oct 14, 2024
8888ad9
Components: Migrate DiffViewer from Protect (#39672)
nateweller Oct 14, 2024
17f7bfb
JITM: Remove JITM from Jetpack Stats dashboard (Preparation to use em…
kangzj Oct 15, 2024
35e13b4
Newsletter: Fix class not found error (#39765)
lezama Oct 15, 2024
7e0dcdf
Help Center: prevent excessive loading (#39688)
arcangelini Oct 15, 2024
9957f93
Sync: avoid conflicts with other plugins using the filter (#39681)
jeherve Oct 15, 2024
8ddc772
Map block: Add absolute positioning for container only when Mapkit is…
coder-karen Oct 15, 2024
083bb6c
Jetpack Sync: Update default Post Type Blacklist (#39770)
fgiannar Oct 15, 2024
bc07917
Boost: Backport 3.5.2 changes (#39771)
dilirity Oct 15, 2024
3e11e70
Verbum Comments: fix gravatar width in nested comments for block them…
michaeldcain Oct 15, 2024
a83eb19
Newsletters: allow skipping subscription modals with URL query arg (#…
simison Oct 15, 2024
2283d83
Post-migration experience: Add domain DNS task (#39764)
sixhours Oct 15, 2024
73bcbf0
Components: Migrate ThreatSeverityBadge from Jetpack Protect (#39758)
nateweller Oct 15, 2024
19cb395
Protect: Add a 30 second timeout argument to the threat history reque…
nateweller Oct 15, 2024
fbc3b0f
Protect: Convert useProtectData to TypeScript (#39778)
nateweller Oct 15, 2024
ee50017
Tests: Use Ubuntu 22.04 runner for PHP 7.0 tests (#39779)
tbradsha Oct 15, 2024
9cea20b
Map block: Do not render the actual map if in block preview mode (#39…
zaguiini Oct 16, 2024
1b13dcf
Related Posts: only enable on all singular views in block themes (#39…
jeherve Oct 16, 2024
d0d0f47
Jetpack: Stats: Fix csv trailing newline handling (#39787)
anomiex Oct 16, 2024
6f60d23
Post migration tasklist: Add/ssl provisioned task (#39776)
andres-blanco Oct 16, 2024
c751d3e
Social: Fix OG tag conflicts with Jetpack Beta (#39792)
gmjuhasz Oct 16, 2024
bbccf38
Add/newsletter preview menu item (#39782)
lezama Oct 16, 2024
bdd36eb
Jetpack 14.0-a.5 (#39793)
kraftbj Oct 16, 2024
ed98166
Changelog and readme.txt edits. (#39781)
nateweller Oct 17, 2024
047bb61
Post-migration Experience: Make the "Migrating the site" task complet…
valterlorran Oct 17, 2024
33a4d42
Admin bar: Add reader icon tooltip (#39803)
m1r0 Oct 17, 2024
8fb5511
My Jetpack: fix the 'Missing site connection' notice (#39809)
sergeymitr Oct 17, 2024
4a64a1d
WAF: Handle undefined entrypoint constant (#39812)
nateweller Oct 17, 2024
661a4de
SSO: optimize 'admin_notices' action callback (#39811)
sergeymitr Oct 17, 2024
a11d1e4
Newsletter: Fix "subscription_emails_use_excerpt" api. (#39815)
lezama Oct 17, 2024
ecc6d06
Social | Initial State: Migrate URLs on Social admin page (#39797)
manzoorwanijk Oct 18, 2024
47ebc32
Changelog and readme.txt edits. (#39814)
nateweller Oct 18, 2024
7e5bc40
Social | Initial State: Migrate URLs in the editor (#39799)
manzoorwanijk Oct 18, 2024
08cba1b
Tests: Fix block performance tests (#39790)
tbradsha Oct 18, 2024
b9c8095
Jetpack outdated WP notices: avoid fatals on outdated WP versions (#3…
jeherve Oct 18, 2024
74f4d13
Story Block: be more defensive to avoid error in block previews (#39807)
jeherve Oct 18, 2024
a4d1801
Protect: Add/apply shared AdminSectionHero component (#39702)
dkmyta Oct 18, 2024
c6bbdd1
Fix site specific features passed to front-end for simple sites (#39817)
manzoorwanijk Oct 21, 2024
b06991a
Boost: Remove unused setup prompt (#39831)
haqadn Oct 21, 2024
996b42e
Social | Fix Bluesky display name when it's not set in user profile (…
manzoorwanijk Oct 21, 2024
febe544
Story block: Prevent 'key is not a prop' warning in ProgressBullet co…
coder-karen Oct 21, 2024
72d8f1f
Slideshow block: Modifying Slideshow block key indexes to prevent sam…
coder-karen Oct 21, 2024
b496385
Fix Jetpack AI features control types (#39826)
CGastrell Oct 21, 2024
b260159
Added `studio-sync` WPCOM plan feature (#39843)
fredrikekelund Oct 21, 2024
b9d592f
Admin bar: Add help icon tooltip (#39845)
m1r0 Oct 21, 2024
b062452
Protect: remove unused usePolling argument from credentials query hoo…
nateweller Oct 21, 2024
31a01ef
Subscriptions: add a floating subscribe button (#37722)
simison Oct 21, 2024
19899ce
AI Client: fix default initial state setting (#39846)
CGastrell Oct 21, 2024
d4f84b1
Revert "Jetpack Sync: Add 'woocommerce_analytics_first_activation' in…
fgiannar Oct 22, 2024
5ad74ee
WPCOM_JSON_API_Upload_Media_v1_1_Endpoint: Fix Fatals from uploads wi…
fgiannar Oct 22, 2024
0f4dadc
Social | Fix reconnection for broken Bluesky connections (#39844)
manzoorwanijk Oct 22, 2024
a2b7be9
Social: Fix Bluesky profile URL (#39849)
gmjuhasz Oct 22, 2024
66363c9
Initial State: Replace `isEnhancedPublishingEnabled` with `siteHasFea…
manzoorwanijk Oct 22, 2024
03ce344
Boost: Don't add a posts page if front page is set but not the posts …
haqadn Oct 22, 2024
b207f16
Floating subscribe button: add source for stats (#39860)
simison Oct 22, 2024
1d41e38
AI Client: make fetch error retry optional (#39848)
CGastrell Oct 22, 2024
537f507
add test instructions for next release (#39866)
CGastrell Oct 22, 2024
1d5fd96
Stats: optimize the Admin Bar hook (#39857)
sergeymitr Oct 22, 2024
ecd5e99
Social: Fix Bluesky custom domain handle not being accepted (#39872)
manzoorwanijk Oct 23, 2024
dad9e6d
Backport changes for Jetpack 14.0-a.7 (#39855)
ice9js Oct 23, 2024
2612bb6
Boost: Remove URL override from image guide (#39874)
haqadn Oct 23, 2024
c166e50
cli: Fix `jetpack changelog add` on a release branch (#39869)
anomiex Oct 23, 2024
7587a57
changlogger: When amending, do not preserve default link (#39868)
anomiex Oct 23, 2024
abc6b8d
Stats: Use option value instead of transient for cache buster (#39887)
kangzj Oct 24, 2024
7966009
Initial State: Migrate `hasPaidFeatures` with feature check on front-…
manzoorwanijk Oct 24, 2024
1449660
Initial State: Nuke hasPaidPlan flag (#39839)
manzoorwanijk Oct 24, 2024
bdd47ff
Social: Fix Bluesky profile name connection management (#39889)
gmjuhasz Oct 24, 2024
fa46e6b
Hooks: Ensure translation loading is not triggered too early. (#39841)
coder-karen Oct 24, 2024
ed0c437
General: indicate compatibility with upcoming WP 6.7 (#39786)
coder-karen Oct 24, 2024
6081d78
Blocks: initialize connection assets in Story block (#39870)
sergeymitr Oct 24, 2024
0ca758b
Fix special chars display in SMP (#39756)
bor0 Oct 24, 2024
95ebe43
phan: Update wpcom stubs (#39795)
matticbot Oct 24, 2024
46e136a
Update to node 22 (#39886)
anomiex Oct 24, 2024
6c64126
Contact Info: Rearranging how the Contact Info block register process…
coder-karen Oct 24, 2024
5b47b63
Jetpack: Fix some minor eslint lints (#39753)
anomiex Oct 24, 2024
fca75ed
AI Assistant: Write Brief should not flag words like '2nd' and '100th…
mwatson Oct 24, 2024
d3386eb
Update dependency svgicons2svgfont to v14 (#39893)
matticbot Oct 24, 2024
748fce5
Verbum Comments: Fix iframe resize logic (#39791)
agrullon95 Oct 24, 2024
ec82326
Add `<9.12.0` to `.engines.pnpm` (#39897)
anomiex Oct 24, 2024
894d176
Initial State: Replace `isSocialImageGeneratorAvailable` with feature…
manzoorwanijk Oct 25, 2024
ccd65f8
Changelog and readme.txt edits. (#39903)
gmjuhasz Oct 25, 2024
f232510
Update Eslint packages (#39898)
matticbot Oct 25, 2024
3ffcd44
Jetpack AI: decouple modal prompt input for reusability (#39864)
CGastrell Oct 25, 2024
ba7d377
required-review: Avoid requesting reviews from bots (#39895)
anomiex Oct 25, 2024
063c6ac
Merge remote-tracking branch 'origin/trunk' into fix/crm/3477-fix-exp…
gogdzl Oct 25, 2024
e5ce479
Make suffix shorter
gogdzl Oct 25, 2024
775eb5d
Remove duplicate 'key´
gogdzl Oct 25, 2024
c8e6376
Leave old key as this is not a problem and removing it will make it a…
gogdzl Oct 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed a fatal error that occurred when exporting contacts with a custom field that had the same name as a linked field (e.g., 'company').
5 changes: 5 additions & 0 deletions projects/plugins/crm/includes/ZeroBSCRM.DAL3.Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ function jpcrm_export_process_file_export() {
$objRow = array();
foreach ( $fields as $fK ) {

// Checking and fixing name clashes between custom fields and linked objects
// (e.g. custom field with slug `company` and the company linked object)
// See: https://github.com/Automattic/zero-bs-crm/issues/3477
$objDALLayer->fix_name_clash_if_needed( $fK ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase

$v = ''; // default (means always right col count)
if ( isset( $obj[ $fK ] ) ) {
$v = zeroBSCRM_textExpose( $obj[ $fK ] );
Expand Down
47 changes: 33 additions & 14 deletions projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2072,6 +2072,25 @@ public function getContacts($args=array()){

}

// Checking and fixing name clashes between custom fields and linked objects
// (e.g. custom field with slug `company` and the company linked object)
// See: https://github.com/Automattic/zero-bs-crm/issues/3477
$this->add_name_clash_suffix_if_needed(
$resArr, // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
array(
'tags',
'dnd',
'company',
'lastlog',
'owner',
gogdzl marked this conversation as resolved.
Show resolved Hide resolved
'invoices',
'quotes',
'transactions',
'tasks',
'external_sources',
)
);

if ($withTags){

// add all tags lines
Expand Down Expand Up @@ -2114,25 +2133,25 @@ public function getContacts($args=array()){

if (is_array($potentialLogs) && count($potentialLogs) > 0) $resArr['lastlog'] = $potentialLogs[0];

// CONTACT logs specifically
// doesn't return singular, for now using arr
$potentialLogs = $this->DAL()->logs->getLogsForObj( // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
array(
// CONTACT logs specifically
// doesn't return singular, for now using arr
$potentialLogs = $this->DAL()->logs->getLogsForObj( // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
array(

'objtype' => ZBS_TYPE_CONTACT,
'objid' => $resDataLine->ID, // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
'objtype' => ZBS_TYPE_CONTACT,
'objid' => $resDataLine->ID, // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase

'notetypes' => $zbs->DAL->logs->contact_log_types, // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
'notetypes' => $zbs->DAL->logs->contact_log_types, // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase

'incMeta' => true,
'incMeta' => true,

'sortByField' => 'zbsl_created',
'sortOrder' => 'DESC',
'page' => 0,
'perPage' => 1,
'sortByField' => 'zbsl_created',
'sortOrder' => 'DESC',
'page' => 0,
'perPage' => 1,

)
);
)
);
gogdzl marked this conversation as resolved.
Show resolved Hide resolved

if (is_array($potentialLogs) && count($potentialLogs) > 0) $resArr['lastcontactlog'] = $potentialLogs[0];

Expand Down
48 changes: 47 additions & 1 deletion projects/plugins/crm/includes/ZeroBSCRM.DAL3.ObjectLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ class zbsDAL_ObjectLayer {
// e.g. Invoice object type may be commonly linked to 'contact' or 'company' object types
protected $linkedToObjectTypes = array();

/** This field is used to store name clashes so we can change custom field names
* with name clashes in function `fix_name_clash_if_needed()`
* See: https://github.com/Automattic/zero-bs-crm/issues/3477
*
* @var array
*/
protected $name_clashes_temp_fix = array();

/** Suffix used to fix name clashes
* See: https://github.com/Automattic/zero-bs-crm/issues/3477
*/
protected const NAME_CLASH_FIX_SUFFIX = '_zbs-name-clash-tmp-fix';

function __construct($args=array()) {

Expand Down Expand Up @@ -1327,7 +1339,41 @@ public function addUpdateCustomField($args=array()){

}


/**
* Fixes name clashes between linked objects (e.g. company) and custom fields with the same slug.
* Adds a suffix to conflicting field names to prevent clashes.
*
* @param array &$array The array containing the fields that need to be checked for name clashes.
* @param string[] $keys An array of keys to check within the provided array for potential name clashes.
*
* @return void
*
* @see https://github.com/Automattic/zero-bs-crm/issues/3477
*/
public function add_name_clash_suffix_if_needed( &$array, $keys ) {
foreach ( $keys as $key ) {
if ( isset( $array[ $key ] ) ) {
$this->name_clashes_temp_fix[] = $key;
$new_key = $key . self::NAME_CLASH_FIX_SUFFIX;
$array[ $new_key ] = $array[ $key ];
}
}
}

/**
* Fixes a field name if it has been identified as having a name clash by appending a suffix.
*
* @param string &$field_name The field name to check and potentially modify to avoid a name clash.
*
* @return void
*
* @see https://github.com/Automattic/zero-bs-crm/issues/3477
*/
public function fix_name_clash_if_needed( &$field_name ) {
if ( in_array( $field_name, $this->name_clashes_temp_fix, true ) ) {
$field_name = $field_name . self::NAME_CLASH_FIX_SUFFIX;
}
}

// =========== / DAL2 WRAPPERS ===================================================
// ===============================================================================
Expand Down