]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Few fixes
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 10 Jun 2017 13:37:25 +0000 (15:37 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 10 Jun 2017 13:37:25 +0000 (15:37 +0200)
src/Wallabag/ApiBundle/Controller/EntryRestController.php
src/Wallabag/CoreBundle/Entity/Entry.php
src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml

index ae9a93aa3cbea81a4d1a1dbf6b16de7ea8f859b6..afd708e6aa21368f2c16bf353338732876f81e7a 100644 (file)
@@ -680,10 +680,10 @@ class EntryRestController extends WallabagRestController
         }
 
         if (!is_null($isPublic)) {
-            $entry->cleanUid();
-
             if (true === (bool) $isPublic && null === $entry->getUid()) {
                 $entry->generateUid();
+            } else if (false === (bool) $isPublic) {
+                $entry->cleanUid();
             }
         }
 
index 07d41ed8f8c65748586041eeb3118d26a6294605..a0503c3918170dfbb9fc8bb29a0e8a4f22f72f4c 100644 (file)
@@ -686,6 +686,7 @@ class Entry
 
     /**
      * Used in the entries filter so it's more explicit for the end user than the uid.
+     * Also used in the API.
      *
      * @VirtualProperty
      * @SerializedName("is_public")
index e9e75efa3f8b4cd8a80b3f7686597e7d8608c568..e9e79c670975cf32a670a7ed0b7f95ad238d493b 100644 (file)
@@ -187,7 +187,7 @@ entry:
         unread_label: "Non lus"
         preview_picture_label: "A une photo"
         preview_picture_help: "Photo"
-        is_public_label: 'A une lien public'
+        is_public_label: 'A un lien public'
         is_public_help: 'Lien public'
         language_label: "Langue"
         http_status_label: "Statut HTTP"