Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Ensure record exists before trying to update TreeTitle #1903

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Feb 19, 2025

Issue #1895

Regression introduced here

Issue is that while the page exists at the start of SilverStripe\Admin\CMSBatchAction::batchaction(), the call to call_user_func_array([$obj, $helperMethod], $arguments ?? []) will call doArchive() meaning that the future assignment to $publishedRecord will be null, meaning that $publishedRecord->TreeTitle; will fail

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GuySartorelli GuySartorelli merged commit eda7cc9 into silverstripe:3.0 Feb 19, 2025
17 checks passed
@GuySartorelli GuySartorelli deleted the pulls/3.0/bulk-archive branch February 19, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants