Remove filter in list view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent
    Senior Member
    • May 2017
    • 178

    Remove filter in list view

    My colleague's list view filter does not work and he try remove it and create again. Then it becomes the case in the attached image (a filter name changed to f709189 and no remove filter option is available). How can we remove this strange filter?
    Attached Files
    Last edited by Vincent; 12-03-2020, 10:17 AM.
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi,
    What is your EspoCRM version?

    Comment

    • Vincent
      Senior Member
      • May 2017
      • 178

      #3
      5.1.2

      Comment

      • Maximus
        Senior Member
        • Nov 2018
        • 2731

        #4
        It is a pretty old version. I believe your Advanced Pack version has the same age. Probably there was a bug that already fixed.
        You can try to remove this filter manually. Just open a /custom/Espo/Custom/Resources/metadata/clientDefs/your-entity-name.json and manually remove this filter from it. After, clear the system cache (Administration -> Clear Cache) and refresh a webpage.

        Comment

        • Vincent
          Senior Member
          • May 2017
          • 178

          #5
          It is a user custom filter, can it be removed from /custom/Espo/Custom/Resources/metadata/clientDefs/your-entity-name.json?

          Comment

          • Maximus
            Senior Member
            • Nov 2018
            • 2731

            #6
            I thought that filter was created with a Report feature https://docs.espocrm.com/user-guide/...report-filters. If so it should plugged to your entity in the /custom/Espo/Custom/Resources/metadata/clientDefs/your-entity-name.json file.
            Also, if your filter was created manually with this way https://docs.espocrm.com/development...select-manager, it should be defined in the JSON file as well.

            Comment

            • Vincent
              Senior Member
              • May 2017
              • 178

              #7
              it is saved using UI by each user
              Attached Files

              Comment

              • Maximus
                Senior Member
                • Nov 2018
                • 2731

                #8
                Hi Vincent,
                I get about what filter you are talking about)) So the user custom list view filter settings should be stored in the DB -> table `preferences` -> column `data`.
                Note, the `data` column stores a whole preferences information about a particular user, so be very careful by removing the information about the broken filter from it. Also after editing this data in the DB, you need to make rebuild.
                Please make a DB dump before you tried to fix it https://docs.espocrm.com/administrat...ackup-database.

                Comment

                Working...