phpMyFAQ icon indicating copy to clipboard operation
phpMyFAQ copied to clipboard

Nothing happen after adding answer, but record is created

Open SmartByteKam opened this issue 3 years ago • 1 comments

Describe the bug When adding an new FAQ, after the user clicks "Submit", the message "Saving" appears and no more feedback. But the record in the database appears, and it will appear as many times as the user clicks on the "Submit" button. Even if the user has not filled in the required fields

To Reproduce Steps to reproduce the behavior:

  1. Go to "https://domain.name/addcontent.html"
  2. Fill in the fields "Name, Mail, Entity", but "Question, Answer" leave empty or not its not important
  3. Push "Submit" button
  4. Text "Saving" is appear, nothing is happen, but record in "Edit FAQs" in administrative mode created

Expected behavior I'm expecting an error message if required fields are not filled in, or if the form is saved and closed when the new FAQ is successfully added

Screenshots Step 1 step1

Step2 step2

Step3 step3

phpMyFAQ (please complete the following information):

  • phpMyFAQ version - 1.3.6
  • PHP version - 8.1.3
  • Database - MySQL
  • Elasticsearch yes/no - no

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome, Firefox
  • Version latest

SmartByteKam avatar Jul 29 '22 03:07 SmartByteKam

I've applied fixes on my host, but I can still create a FAQ with an empty question and answer field

SmartByteKam avatar Jul 30 '22 01:07 SmartByteKam