File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
Search API 1.x, dev (xxxx-xx-xx):
2
2
---------------------------------
3
+ - #2866454 by phenaproxima, drunken monkey: Fixed problems in update 8103.
3
4
- #2844945 by drunken monkey: Fixed uncaught exception when adding too many
4
5
fields.
5
6
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ function search_api_update_8103() {
225
225
$index = $config_factory->getEditable($index_id);
226
226
$processors = $index->get('processor_settings');
227
227
228
- if (!empty ($processors['node_status'])) {
228
+ if (isset ($processors['node_status'])) {
229
229
$processors['entity_status'] = $processors['node_status'];
230
230
unset($processors['node_status']);
231
231
$index->set('processor_settings', $processors);
@@ -235,6 +235,13 @@ function search_api_update_8103() {
235
235
}
236
236
}
237
237
238
+ // Clear the processor plugin cache so that if anything else indirectly tries
239
+ // to update Search API-related configuration, the plugin helper gets the most
240
+ // up-to-date plugin definitions.
241
+ \Drupal::getContainer()
242
+ ->get('plugin.manager.search_api.processor')
243
+ ->clearCachedDefinitions();
244
+
238
245
return t('Switched from old "Node status" to new "Entity status" processor.');
239
246
}
240
247
You can’t perform that action at this time.
0 commit comments