зеркало из https://github.com/nextcloud/deck.git
returns string on null
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Родитель
6782641c28
Коммит
6de2614f05
|
@ -178,8 +178,8 @@ class FullTextSearchService {
|
|||
/** @var Card $card */
|
||||
$card = $this->cardMapper->find((int)$document->getId());
|
||||
|
||||
$document->setTitle($card->getTitle());
|
||||
$document->setContent($card->getDescription());
|
||||
$document->setTitle(($card->getTitle() === null) ? '' : $card->getTitle());
|
||||
$document->setContent(($card->getDescription() === null) ? '' : $card->getDescription());
|
||||
$document->setAccess($this->generateDocumentAccessFromCardId((int)$card->getId()));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче