From 6bcc85a7f3abda1dfb6d40cde3f87dbef252f165 Mon Sep 17 00:00:00 2001 From: Danny Adams Date: Tue, 7 Mar 2023 09:49:08 -0500 Subject: [PATCH] Update to pkg/backup/details.details.go Issue #2709: Item Type extended to the three categories supported within SharePoint. --- src/pkg/backup/details/details.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pkg/backup/details/details.go b/src/pkg/backup/details/details.go index edb545cb2..a62e87364 100644 --- a/src/pkg/backup/details/details.go +++ b/src/pkg/backup/details/details.go @@ -403,7 +403,9 @@ const ( ExchangeEvent ExchangeMail - SharePointItem ItemType = iota + 100 + SharePointLibrary ItemType = iota + 100 + SharePointList ItemType = iota + 100 + SharePointPage ItemType = iota + 100 OneDriveItem ItemType = iota + 200 @@ -416,7 +418,7 @@ func UpdateItem(item *ItemInfo, repoPath path.Path) error { var updatePath func(path.Path) error switch item.infoType() { - case SharePointItem: + case SharePointLibrary: updatePath = item.SharePoint.UpdateParentPath case OneDriveItem: updatePath = item.OneDrive.UpdateParentPath