Skip to content

Fix quests custom goals text being set to the same ID when created by importing existing data#681

Merged
AerunDev merged 3 commits intodevelopfrom
680-creating-quests-by-importing-another-one-with-custom-goals-make-those-goals-using-the-same-text-entry
Nov 9, 2025
Merged

Fix quests custom goals text being set to the same ID when created by importing existing data#681
AerunDev merged 3 commits intodevelopfrom
680-creating-quests-by-importing-another-one-with-custom-goals-make-those-goals-using-the-same-text-entry

Conversation

@Aelysya
Copy link
Collaborator

@Aelysya Aelysya commented Nov 3, 2025

Description

This PR fixes two issues that are closely related. When custom goals are created via an importation method (whether by creating an entire quest with existing data, or only importing another quest's goals) the text IDs used by these goals were the same as the imported ones, creating conflicts.

closes #680

Note before testing

  • Have an existing quest in your database with one or more custom goals set.

Tests to perform

  • Create a new quest using the "Other data" method, the copied custom goals have newly assigned IDs and the texts have been copied
  • In an existing quest, import goals from another quest, the copied custom goals have newly assigned IDs and the texts have been copied

Copy link
Collaborator

@Palbolsky Palbolsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testé et le bug est bien corrigé.
J'ai simplement relevé une duplication de code, à voir si on peut créer facilement une fonction.

@AerunDev AerunDev changed the title Fix Quests custom goals text being set to a used ID when created by importing existing data Fix quests custom goals text being set to the same ID when created by importing existing data Nov 9, 2025
@AerunDev AerunDev merged commit d29c08c into develop Nov 9, 2025
5 checks passed
@AerunDev AerunDev deleted the 680-creating-quests-by-importing-another-one-with-custom-goals-make-those-goals-using-the-same-text-entry branch November 9, 2025 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating quests by importing another one with custom goals make those goals using the same text entry

3 participants