From: ArthurHoaro Date: Sun, 7 May 2017 16:02:49 +0000 (+0200) Subject: Fix a bug happening when importing links with override option X-Git-Tag: v0.9.0~4^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=28794b69cba22636ef22bd063a68732fd9ae6d6f Fix a bug happening when importing links with override option The shorturl would be set to null, generating a lot of warnings and breaking permalinks --- diff --git a/application/NetscapeBookmarkUtils.php b/application/NetscapeBookmarkUtils.php index bbfde138..2a10ff22 100644 --- a/application/NetscapeBookmarkUtils.php +++ b/application/NetscapeBookmarkUtils.php @@ -180,6 +180,7 @@ class NetscapeBookmarkUtils $newLink['id'] = $existingLink['id']; $newLink['created'] = $existingLink['created']; $newLink['updated'] = new DateTime(); + $newLink['shorturl'] = $existingLink['shorturl']; $linkDb[$existingLink['id']] = $newLink; $importCount++; $overwriteCount++;