item.numAttachments incorrectly returning trashed attachments
I'm writing a plugin and noticed that whenever I call item.numAttachments(false) on a Zotero.item, it includes attachments in the trash too. Presumably this is what the argument i passed is supposed to prevent...
am i doing something wrong or is this a bug?
-Keith
am i doing something wrong or is this a bug?
-Keith
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Is there a better way to do this? I briefly considered just renaming the file in the storage directory and updating the filename in the database, but I wasn't sure if that would lead to database problems, or even syncing problems (i don't use the sync function).
Thanks,
Keith