? ? ? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
2 Jan 2021

Pull Request for Issue #30957 .

Summary of Changes

Ensure there is a valid language code for an application when saving.

Testing Instructions

You can't follow the instructions in the issue anymore as another PR has disabled the ability to navigate directly to the edit form. However you can reproduce by editing the form directly (as below) - this screenshot also shows the expected error when you save an item with an invalid language code:

image

Actual result BEFORE applying this Pull Request

Result saves or gives database error

Expected result AFTER applying this Pull Request

Error message as in the above screenshot

Documentation Changes Required

None

avatar wilsonge wilsonge - open - 2 Jan 2021
avatar wilsonge wilsonge - change - 2 Jan 2021
Status New Pending
avatar wilsonge wilsonge - change - 2 Jan 2021
Title
Ensure language code is validated in the mail template
[4.0] Ensure language code is validated in the mail template
avatar wilsonge wilsonge - edited - 2 Jan 2021
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jan 2021
Category Administration Language & Strings
avatar richard67
richard67 - comment - 2 Jan 2021

I have tested this item successfully on 0aed636


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31835.

avatar richard67 richard67 - test_item - 2 Jan 2021 - Tested successfully
avatar ceford
ceford - comment - 2 Jan 2021

I have tested this item successfully on 0aed636

Save without the patch gave: Save failed with the following error: Data too long for column 'language' at row 1

With the patch it gave: Invalid Language Code

That link with a drop down arrow to the right I found confusing. Better to make it a more obvious button?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31835.

avatar ceford ceford - test_item - 2 Jan 2021 - Tested successfully
avatar richard67 richard67 - change - 2 Jan 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 2 Jan 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31835.

avatar richard67 richard67 - change - 2 Jan 2021
Labels Added: ? ? ?
avatar drmenzelit drmenzelit - change - 2 Jan 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-01-02 14:43:01
Closed_By drmenzelit
Labels
avatar drmenzelit drmenzelit - close - 2 Jan 2021
avatar drmenzelit drmenzelit - merge - 2 Jan 2021
avatar drmenzelit
drmenzelit - comment - 2 Jan 2021

Thanks

Add a Comment

Login with GitHub to post a comment