[5.4] POST com_contact form with webservices and custom reply enabled#47819
Conversation
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
|
I have tested this item ✅ successfully on 555e138 I debugged with phpstorm and found following
: This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47819. |
|
@alikon with the Testing Instructions above, I get the same BEFORE and AFTER, code": 500, "title": "Internal server error". What am I doing wrong? :( |
|
@exlemor my previous test instruction was very bad 😄 |
|
Hi @alikon, I assume you are being funny ;) but that's what I understood the Testing Instructions to be but I get the same 500 internal server error with or without the Patch ;( |
|
I have tested this item ✅ successfully on 555e138 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47819. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47819. |
|
✅ Final test before merge with JBT. In a new nightly build installation:
|
|
Thank you very much @alikon for your contribution. Thanks to @QuyTon and @richard67 for review and support. Thanks to @exlemor, @ThomasFinnern and @QuyTon for testing. |
Pull Request resolves #44927 alternative to #45136
Summary of Changes
Refactor email sending logic in ContactController when no custom reply enabled
Testing Instructions
Set custom_reply parameter to true in com_contact
Try to send a message using webservices
POST https://yoursite/api/index.php/v1/contacts/form/{contact_id}with this example payload{ "contact_email": "email@example.org", "contact_message": "some text", "contact_name": "name", "contact_subject": "subject" }Actual result BEFORE applying this Pull Request
Exception
Expected result AFTER applying this Pull Request
no Exception
Link to documentations
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed