Contact form loses data after postback with error#17743
Contact form loses data after postback with error#17743mbabker merged 3 commits intojoomla:stagingfrom sandewt:patch-1
Conversation
Pull Request for issue #17126. Testing Instructions. See issue #17126 * Go to Single Contact. * Fill in the form. * Do not fill in captcha. * Send email. Expected result: Warning + textboxes are NOT empty. So the user should not entered all text again. Actual result: All textboxes are empty, so the user has to enter again all textboxes. Thanks to: @ pascal-910.
|
I'm new on Github. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17743. |
|
Ask for input. Is the following code nessecary? empty($item->catid)In the DB table xxx_content is defined: So the catid may not be empty !? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17743. |
|
The patch works fine for me.
There is never a problem with extra test :-). However in this situation only https://stackoverflow.com/questions/7191626/isset-and-empty-what-to-use#answer-7191642 If you change this I can conform the test via the J!Issue tracker. |
|
Thanks, interesting post. Do you mean This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17743. |
Delete some tabs.
|
Sorry, a mistake for closing!! |
|
Please test this PR #17126 or give comment. |
|
I have tested this item ✅ successfully on 8004b7a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17743. |
1 similar comment
|
I have tested this item ✅ successfully on 8004b7a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17743. |
|
RTC after two successful tests. |
|
@franz-wohlkoenig Please see @n9iels #17743 (comment) |
|
@wojsmol means this Comment not RTC? |
|
@franz-wohlkoenig Let's leve desicion to one of maainterners. Code my to be a little simpler, but both versions works. |
if (!isset($item->catid) || empty($item->catid)) changes to if (empty($item->catid))
|
On closer inspection and the comments, the following: In the Joomla! core rarely used the combination of 'isset and empty', and not for no reason. So I changed the code, PLEASE TEST AGAIN. |
|
Sorry for closing, issue should be open @franz-wohlkoenig. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17743. |
|
re-opened |
|
Thanks Brian, and @niels should be @n9iels. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17743. |
|
I have tested this item ✅ successfully on 9377adb This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17743. |
|
I have tested this item ✅ successfully on 9377adb This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17743. |
|
RTC |
|
Looks like this pr has opened another issue. See #20195 please. |
|
@sandewt |

Pull Request for issue #17126.
Summary of Changes
Some code.
Testing Instructions
Instructions, see issue #17126
Expected result
Warning + textboxes are NOT empty.
Actual result
All textboxes are empty, so the user has to fill in AGAIN all textboxes.
Documentation Changes Required
No.
Thanks to
@pascal-910