? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
27 Aug 2020

Summary of Changes

This PR prevents saving a Content Language when its Url Language Code is empty.
Alternative to #30496

Testing Instructions

Try to save the URL Language Code field using non alphanumeric characters eg #~@

Actual result BEFORE applying this Pull Request

Language Saved

Expected result AFTER applying this Pull Request

Invalid field: URL Language Code

Documentation Changes Required

Add rule to the list https://docs.joomla.org/J3.x:Server-side_form_validation ?

avatar brianteeman brianteeman - open - 27 Aug 2020
avatar brianteeman brianteeman - change - 27 Aug 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Aug 2020
Category Administration com_languages Libraries
dd7d5e7 27 Aug 2020 avatar brianteeman drone
avatar brianteeman brianteeman - change - 27 Aug 2020
Labels Added: ?
avatar SharkyKZ
SharkyKZ - comment - 27 Aug 2020

The message in #30496 is misleading. Language code doesn't actually have to be alphanumeric.

avatar infograf768
infograf768 - comment - 28 Aug 2020

The message in #30496 is misleading. Language code doesn't actually have to be alphanumeric.

Indeed. It has to be alphanumeric IF Unicode Alias is set to NO. Otherwise, it can use multibytes characters. Thus why the message is simplified in #30496

Also hyphens are OK.

avatar brianteeman
brianteeman - comment - 28 Aug 2020

I will close this here and rebase to J4 but just the rule

avatar brianteeman brianteeman - change - 28 Aug 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-08-28 06:42:25
Closed_By brianteeman
avatar brianteeman brianteeman - close - 28 Aug 2020

Add a Comment

Login with GitHub to post a comment