}
if (!is_null($isPublic)) {
- $entry->cleanUid();
-
if (true === (bool) $isPublic && null === $entry->getUid()) {
$entry->generateUid();
+ } else if (false === (bool) $isPublic) {
+ $entry->cleanUid();
}
}
/**
* 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")
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"