diff options
author | Yorhel <git@yorhel.nl> | 2022-08-26 10:18:08 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2022-08-26 10:18:08 +0200 |
commit | 69d7e974cc1776cea5af36c09b0b8fe499d8bc79 (patch) | |
tree | 6ab50c5043ed957ab1f14fc6f8fa2080d4949af6 /elm | |
parent | eb80ff1d88da317e388960348d237597d7f2fd49 (diff) |
VNEdit: Allow duplicate edition names with different languages
Diffstat (limited to 'elm')
-rw-r--r-- | elm/VNEdit.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/VNEdit.elm b/elm/VNEdit.elm index d711601d..d95b2cdc 100644 --- a/elm/VNEdit.elm +++ b/elm/VNEdit.elm @@ -376,7 +376,7 @@ isValid model = not || not (Img.isValid model.image) || List.any (\(_,i,r) -> r == Nothing || not (Img.isValid i)) model.screenshots || not (List.isEmpty model.scrQueue) - || hasDuplicates (List.map (\e -> e.name) model.editions) + || hasDuplicates (List.map (\e -> (Maybe.withDefault "" e.lang, e.name)) model.editions) || hasDuplicates (List.map (\s -> (s.aid, Maybe.withDefault -1 s.eid, s.role)) model.staff) || hasDuplicates (List.map (\s -> (s.aid, s.cid)) model.seiyuu) ) |