-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contact form loses data after postback with error #17743
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