I would like to know what modules are altering the select sql of a view. Is there any way I could know it?. Due to this question I put some days ago, I would like to find why that sql is altered. I have read views core files (core/modules/views/src/Plugin/views/filter/Date.php) but this file isn't adding what I was searching for.

  • You could simply disable modules one by one until you got your candidate. Asking for a list of modules that possibly may alter SQL queries probably is too broad to ever be answered precisely. – leymannx Sep 9 at 12:02
  • You can search in your project for _views_query_alter and find all modules implementing views query alter. Then you just have to look which of then are altering your specific view. – Jdrupal Sep 9 at 16:10
  • Thanks. That's what I did without success – briast Sep 9 at 18:01
  • But i didn't find what is changing the query. I don't know what is happening. – briast Sep 9 at 18:02
  • I finally found that a module was changing the form filter states and then, the query was wrong from its origin. – briast Oct 1 at 16:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.