Account created on 17 April 2014, over 10 years ago
#

Recent comments

🇧🇷Brazil edmargomes

I fixed my problem with this:

I created a form alter and added

if ($form_id == 'views_exposed_form' && $form['#id'] == 'views-exposed-form-faros-companies-search-search-companies-block') {
    if (isset($form['city']['#process']))
      $form['city']['#process'] = array_merge($form['city']["#process"], ['facets_exposed_filters_remove_validation']);
  }
🇧🇷Brazil edmargomes

If I use select2 in BEF then I have the same problem.

But, if I keep the default value widget or checkbox, worked

Then, I made a test, I changed select to select2 in FacetFilter line 174

$form['value'] = [
      '#type' => 'select2',
      '#options' => $this->buildOptions($facet->getResults(), $facet),
      '#multiple' => $this->options["expose"]["multiple"],
      '#process' => array_merge($select_element["#process"], ['facets_exposed_filters_remove_validation']),
    ];

This worked too

I tried form alter and add this:

$form['city']['#type'] = 'select2';

But show the same problem, only worked in valueForm on FacetFilter

I am searching for Drupal away solution yet

🇧🇷Brazil edmargomes

I have this problem here cfr.org.

To reproduce:
Set the quality to 85% in the webp module
Create an image style with Convert WEBP
Access the image several times and keep downloading, don't forget to use an anti cache in the url ?cache=93893984

I updated the patch to RC2

🇧🇷Brazil edmargomes

I agree that it needs to be adjusted in the search api as well.

It's in both, as the core calls a render hook that triggers the hook in the search api, preventing the render from being called unnecessarily is important.

This render in the webform is called even if it's not on a webform page or in the webform admin. All it takes is for some module to invoke the tokens that arrive in this function.
However, in the search api, I agree that there needs to be a rule to prevent unnecessary processing. I'm still investigating how to patch it.

🇧🇷Brazil edmargomes

Fix once to use core/once library.

🇧🇷Brazil edmargomes

Example for work today:

let id = $('#edit-container-body-value').attr('data-ckeditor5-id');
Drupal.CKEditor5Instances.get(id).setData(email_content);

you can create a utils like this:

const ckeditorInstanceByElement = (elementId) => {
  let id = $(elementId).attr('data-ckeditor5-id');
  return Drupal.CKEditor5Instances.get(id);
};
🇧🇷Brazil edmargomes

I had a problem applying the .info patch for version 2.0.0

I'm sending the small adjustment here.

🇧🇷Brazil edmargomes

ignore the problem is a custom patch applied after update the module.

🇧🇷Brazil edmargomes

Started the process, I fixed problem with jquery once too.

Sending the first version to get more opinions

🇧🇷Brazil edmargomes

The patch #5 works, but need change to get with one option, or config->storage->get or config->get

Production build 0.71.5 2024