Skip to content

Fixes for edit quest page

Austin Pliska requested to merge add_objective_to_quest into main

Fixed:

  • Objectives added to quests via the quest edit page would not save to the correct quest
  • 'Description', 'startDate', and 'endDate fields would incorrectly save as null when left blank, breaking the manager and not allowing more quests to be added. Added new default values for each:
    • description = " "
    • startDate = current date / date of adding or editing the quest
    • endDate = 12/31/9999 / the current maximum date of our mock quests

Changed:

  • Hide the "add objective" button from the edit quest page when a new quest is being created.
    • This would cause problems if the user tried to add objectives to a new quest. The objectives would try to save to a quest at the same time of its creation, causing problems in the database.
  • Change the background color of the submit button on the edit quest page to be a color that people can actually see.
  • Removed unused imports.

Merge request reports

Loading