Kovah/LinkAce

New tags or lists vanish in case of a validation issue

Aberta

#938 aberto em 19 de mar. de 2025

 (0 comentário) (0 reação) (0 responsável)PHP (204 forks)batch import
BugHelp wanted

Métricas do repositório

Stars
 (3.327 estrelas)
Métricas de merge de PR
 (Mesclagem média 4d 20h) (4 fundiu PRs em 30d)

Description

Bug Description

When adding a new tag or list during the link creation or editing, those will vanish if the validation fails.

Caused by https://github.com/Kovah/LinkAce/blob/2.x/resources/assets/js/components/TagsSelect.js#L52

How to reproduce

  • add a new link with the url https://example.com
  • open link creation form
  • set https://example.com as the url
  • add new list as a new list
  • try to submit the form, this should fail because the url already exists
  • new list vanished from the list input

Expected behavior

new list should stay in the list input

Logs

Screenshots

No response

LinkAce version

2.x

Setup Method

Docker

Operating System

Linux (Ubuntu, CentOS,...)

Client details

No response

Guia do colaborador