mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-16 05:41:02 +08:00
API: Ensure slugs are not empty before saving/creating labels #4761
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
7
internal/entity/entity_errors.go
Normal file
7
internal/entity/entity_errors.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package entity
|
||||
|
||||
import "fmt"
|
||||
|
||||
var (
|
||||
ErrInvalidName = fmt.Errorf("invalid name")
|
||||
)
|
Reference in New Issue
Block a user