Commit d56bfc6b authored by StryKaizer's avatar StryKaizer

Enable query processor on creation facet

parent db3302df
......@@ -488,6 +488,17 @@ class FacetForm extends EntityForm {
$facet = $this->getEntity();
$is_new = $facet->isNew();
// TODO: quickfix, enable query string processor on facet creation.
// TODO: create new setting (similar to locked) on processor to enabled
// TODO: certain processors by default
if($is_new){
$facet->setOption('processors', [
'query_string' => [
'settings' => [],
],
]);
}
// Make sure the field identifier is copied from within the facet source
// config to the facet object and saved there.
$facet_source = $form_state->getValue('facet_source_id');
......
......@@ -20,7 +20,8 @@ use Symfony\Component\HttpFoundation\Request;
* stages = {
* "pre_query" = 50,
* "build" = 15,
* }
* },
* locked = true
* )
*/
class QueryStringUrlProcessor extends UrlProcessorPluginBase {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment