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:
commit
3108f2a800
1 changed files with 1 additions and 0 deletions
|
@ -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++;
|
||||||
|
|
Loading…
Reference in a new issue