aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php1
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php1
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php2
3 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index 3ac0f8a6..b7fdea27 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -78,7 +78,6 @@ class EntryController extends Controller
78 return $this->redirect($this->generateUrl('view', ['id' => $existingEntry->getId()])); 78 return $this->redirect($this->generateUrl('view', ['id' => $existingEntry->getId()]));
79 } 79 }
80 80
81 $entry->setGivenUrl($entry->getUrl());
82 $this->updateEntry($entry); 81 $this->updateEntry($entry);
83 82
84 $em = $this->getDoctrine()->getManager(); 83 $em = $this->getDoctrine()->getManager();
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index fe795d42..48b5dfbc 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -65,6 +65,7 @@ class ContentProxy
65 // so we'll be able to refetch it in the future 65 // so we'll be able to refetch it in the future
66 $content['url'] = !empty($content['url']) ? $content['url'] : $url; 66 $content['url'] = !empty($content['url']) ? $content['url'] : $url;
67 67
68 $entry->setGivenUrl($url);
68 $this->stockEntry($entry, $content); 69 $this->stockEntry($entry, $content);
69 } 70 }
70 71
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index cd63c1ba..20acd103 100644
--- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
@@ -270,7 +270,7 @@ class EntryControllerTest extends WallabagCoreTestCase
270 $this->logInAs('admin'); 270 $this->logInAs('admin');
271 $client = $this->getClient(); 271 $client = $this->getClient();
272 272
273 $url = 'https://fashionunited.com/news/business/jigsaw-posts-8-percent-increase-in-annual-sales/2017070316404'; 273 $url = 'http://bit.ly/2t8Fwre';
274 274
275 $crawler = $client->request('GET', '/new'); 275 $crawler = $client->request('GET', '/new');
276 276