Check if there is a title or body set
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
parent
a083871234
commit
e211ef0271
|
@ -362,8 +362,8 @@ class PullsModel extends ListModel
|
||||||
// Build the data object to store in the database
|
// Build the data object to store in the database
|
||||||
$pullData = [
|
$pullData = [
|
||||||
(int) $pull->number,
|
(int) $pull->number,
|
||||||
$this->getDbo()->quote(HTMLHelper::_('string.truncate', $pull->title, 150)),
|
$this->getDbo()->quote(HTMLHelper::_('string.truncate', ($pull->title ?? ''), 150)),
|
||||||
$this->getDbo()->quote(HTMLHelper::_('string.truncate', $pull->body, 100)),
|
$this->getDbo()->quote(HTMLHelper::_('string.truncate', ($pull->body ?? ''), 100)),
|
||||||
$this->getDbo()->quote($pull->html_url),
|
$this->getDbo()->quote($pull->html_url),
|
||||||
(int) $isRTC,
|
(int) $isRTC,
|
||||||
(int) $isNPM,
|
(int) $isNPM,
|
||||||
|
|
Loading…
Reference in New Issue