Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a follow-up to issue #530 that I previously reported.
If you check the issue details, you'll see that the Save button is stuck due to an unnecessary input field. The core problem is that both input fields share the same name, question_id, which causes unintended validation conflicts.
Since I am not familiar with the entire scope of the project, I was hesitant to modify the ID of the correct input field, as I was concerned it might interfere with the database or other templates. While I searched through the project to confirm this, I couldn’t find any direct dependencies. However, as a beginner, I didn’t want to take any unnecessary risks.
To address this, I explored two possible solutions:
(Implemented in my fix): I changed the request method from pull/request to AJAX, incorporating local JavaScript to handle the process.
(Alternative approach): I considered auto-filling the "Add A Question" input with a placeholder (dummy) value, assuming that this information would be ignored. However, this approach carried potential risks of causing issues later on.
I apologize if my explanation isn’t entirely clear. As I mentioned earlier, I am still a beginner and have been using AI assistance, which sometimes prioritizes quick solutions over optimal ones.
Thanks for your patience!
Cheers! 🚀