Merge pull request #861 from ArthurHoaro/hotfix/import-shorturl-override

Fix a bug happening when importing links with override option
This commit is contained in:
ArthurHoaro 2017-05-07 18:38:55 +02:00 committed by GitHub
commit 3108f2a800

View file

@ -180,6 +180,7 @@ public static function import($post, $files, $linkDb, $conf, $history)
$newLink['id'] = $existingLink['id']; $newLink['id'] = $existingLink['id'];
$newLink['created'] = $existingLink['created']; $newLink['created'] = $existingLink['created'];
$newLink['updated'] = new DateTime(); $newLink['updated'] = new DateTime();
$newLink['shorturl'] = $existingLink['shorturl'];
$linkDb[$existingLink['id']] = $newLink; $linkDb[$existingLink['id']] = $newLink;
$importCount++; $importCount++;
$overwriteCount++; $overwriteCount++;