mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Merge pull request #204 from creative-commoners/pulls/2.0/cast-number-as-int
FIX Cast shortcode document ID as int
This commit is contained in:
commit
96bac3fdc9
@ -39,10 +39,12 @@ class ShortCodeRelationFinder
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param int $number
|
||||||
* @return DataList
|
* @return DataList
|
||||||
*/
|
*/
|
||||||
public function getList($number)
|
public function getList($number)
|
||||||
{
|
{
|
||||||
|
$number = (int) $number;
|
||||||
$list = DataList::create('SiteTree');
|
$list = DataList::create('SiteTree');
|
||||||
$where = array();
|
$where = array();
|
||||||
$fields = $this->getShortCodeFields('SiteTree');
|
$fields = $this->getShortCodeFields('SiteTree');
|
||||||
|
Loading…
Reference in New Issue
Block a user