frappe-better-attach-control icon indicating copy to clipboard operation
frappe-better-attach-control copied to clipboard

[BUG]: better-attach getting overridden to original attach-control after single use.

Open aakashhgoud opened this issue 1 year ago • 1 comments

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.

aakashhgoud avatar May 22 '24 08:05 aakashhgoud

@kashgod Thank you bro for reporting this and sorry for my late response..

I have made some changes to the plugin so please give it another try. I hope that it works this time..

Please let me know if it still keeps on reverting to base frappe control..

Best regards..

kid1194 avatar May 29 '24 22:05 kid1194