mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
FIX Cast shortcode document ID as int
This commit is contained in:
parent
bcf2ac9757
commit
046047e49f
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user