Dominic-DallOsto / zotero-reading-list

Keep track of whether you've read items in Zotero
GNU General Public License v3.0
273 stars 7 forks source link

Error with attached files #4

Closed Dominic-DallOsto closed 1 year ago

Dominic-DallOsto commented 1 year ago

Invalid field 'readstatus' for base field

In this Zotero function:

function getFieldIDFromTypeAndBase(itemType, baseField) {
    var itemTypeID = Zotero.ItemTypes.getID(itemType);
    if (!itemTypeID) {
      throw new Error("Invalid item type '" + itemType + "'");
    }

    var baseFieldID = this.getID(baseField);
    if (!baseFieldID) {
      throw new Error("Invalid field '" + baseField + "' for base field");
    }

    // If field isn't a base field, return it if it's valid for the type
    if (!this.isBaseField(baseFieldID)) {
      return this.isValidForType(baseFieldID, itemTypeID) ? baseFieldID : false;
    }

    return _baseTypeFields[itemTypeID][baseFieldID];
  }
github-actions[bot] commented 1 year ago

:robot: this is your friendly neighborhood build bot announcing test build 0.1.0.8 ("Don't fallback to original getField for attachments\nFixes #4")

Install in Zotero by downloading test build 0.1.0.8, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".