Describe the bug
I have setup the attach control to allow only PDF files. Next, I have added a controller to autoname the doctype using the attach field name. The first time I'm opening the file picker, it's restricting to show only PDF files and say I added the first item. When I press "Add Doctype" again to add the second item, the original attach-control of frappe app is opening and I'm able to select all the files.
Additional context
I have added a controller to autoname the doctype using "Script" option in Naming.
Describe the bug
I have setup the attach control to allow only PDF files. Next, I have added a controller to autoname the doctype using the attach field name. The first time I'm opening the file picker, it's restricting to show only PDF files and say I added the first item. When I press "Add Doctype" again to add the second item, the original attach-control of frappe app is opening and I'm able to select all the files.
Additional context
I have added a controller to autoname the doctype using "Script" option in Naming.