[DEFECT] pullRelatedField fails to return last "page" of results
Open
@fmontes is already working on this.
Since Feb 24, 2026.
OKR : Customer Support
Priority : 3 Average
stale
Team : Scout
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Problem Statement
I'm getting 0 results when using $dotcontent.pullRelatedField() on the last "page" of results.
Steps to Reproduce
Log into dotAdmin on demo.dotcms.com.
At the time of writing, there are 4 blog contentlets associated with author f851e34a-d128-408e-a75a-4fa1c33201b8. If we set the limit to 3 and offset to 3 we should get 1 result, but get 0 instead.
#set ($blogs = $dotcontent.pullRelatedField("f851e34a-d128-408e-a75a-4fa1c33201b8", "BlogAuthor.blog", "+contentType:Blog ", 3, 3, "modDate"))
$blogs.size()
I noticed that using a higher limit (e.g. 30) does not trigger the bug, allowing us to receive the result set.
Acceptance Criteria
-
$dotcontent.pullRelatedField()returns results as expected
dotCMS Version
- 23.10.24_lts_v0 (version first noticed on)
- dotcms-core 25.09.18-1 (demo.dotcms.com at the time of writing)
Severity
Medium - Some functionality impacted
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.