diff --git a/model/Items.inc.php b/model/Items.inc.php index df08d0c6e..cc8609b2a 100644 --- a/model/Items.inc.php +++ b/model/Items.inc.php @@ -1849,12 +1849,15 @@ public static function updateFromJSON(Zotero_Item $item, case 'annotationText': case 'annotationComment': case 'annotationColor': - case 'annotationPageLabel': case 'annotationSortIndex': case 'annotationPosition': $item->$key = $val; break; - + + case 'annotationPageLabel': + $item->$key = substr($val, 0, Zotero_Items::$maxAnnotationPageLabelLength); + break; + case 'dateModified': if ($apiVersion >= 3 && $tmpZoteroClientDateModifiedHack) { $item->setField($key, $val);