]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #861 from ArthurHoaro/hotfix/import-shorturl-override
authorArthurHoaro <arthur@hoa.ro>
Sun, 7 May 2017 16:38:55 +0000 (18:38 +0200)
committerGitHub <noreply@github.com>
Sun, 7 May 2017 16:38:55 +0000 (18:38 +0200)
Fix a bug happening when importing links with override option

application/NetscapeBookmarkUtils.php

index bbfde1386075c42b2deb61a57d8aaed1d39f336b..2a10ff22149f8c89f30458d9e5c907e19847438a 100644 (file)
@@ -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++;