FIX Cast shortcode document ID as int

This commit is contained in:
Robbie Averill 2017-12-07 16:41:52 +13:00
parent bcf2ac9757
commit 046047e49f

View File

@ -39,10 +39,12 @@ class ShortCodeRelationFinder
}
/**
* @param int $number
* @return DataList
*/
public function getList($number)
{
$number = (int) $number;
$list = DataList::create('SiteTree');
$where = array();
$fields = $this->getShortCodeFields('SiteTree');