Cannot save Search Kit on Upgraded CiviCRM due to TypeError
Steps to reproduce:
- Have a CiviCRM site on 5.69.x with multiple Seartch Kits, form Builders etc
- Upgrade to 5.72
- Open a search Kit
- Change anything in a table display
- Save
- Error
TypeError: Cannot read properties of undefined (reading 'forEach')
at angular-modules.8b3a0064410d0900aaa864fa894cba9e.js:1166:34
at angular.js:18075:37
at m.$digest (angular.js:19242:15)
at angular.js:19562:15
at Yg.completeTask (angular.js:21403:7)
at angular.js:6879:7 'Possibly unhandled rejection: {}'
on URL https://example.org/wp-content/uploads/civicrm/persist/contribute/dyn/angular-modules.8b3a0064410d0900aaa864fa894cba9e.js
SK Exports are identical 5.69 to 5.72 572-sk.json
This has happened on multiple sites and I cannot track down the issue.
Environment:
- WP (both 6.4.4 and 6.5.2)
- CiviCRM upgrade to 5.72.1 from 5.69 or prior
- php 8.1