Skip to content

Using null or 0 for title or slug causes issues #13785

@joshuablum

Description

@joshuablum

Bug description

It's two things essentially:

  1. When a taxonomy term has the value 0 it appears empty in the listing table instead of displaying 0.
  2. When creating a taxonomy term (or anything with a slug really, like an entry) typing null into the title field causes the slug field to become empty instead of showing actual null as the slug.
Screen.Recording.2026-01-23.at.11.53.08.mov

Brought to our attention by Ash through support. Thanks, Ash!

How to reproduce

Use 0 as a term title or null as the slug for an entry or term, for example.

Logs

Environment

Environment
Application Name: Statamic
Laravel Version: 12.49.0
PHP Version: 8.3.30
Composer Version: 2.9.3
Environment: local
Debug Mode: ENABLED
URL: sandbox.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.x-dev PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions