Fix collection context

This commit is contained in:
Jake Barnby 2025-08-19 00:34:28 +12:00
parent c86b35fbb3
commit 4493131d86
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -20,7 +20,9 @@ abstract class Action extends UtopiaAction
public function setHttpPath(string $path): UtopiaAction
{
// Context is automatically set by Documents/Action.php setHttpPath for tablesdb paths
if (\str_contains($path, '/tablesdb')) {
$this->context = TABLES;
}
return parent::setHttpPath($path);
}