J3 Issue ?
avatar crystalenka
crystalenka
1 Jul 2019

Steps to reproduce the issue

  1. Create a repeatable custom field linked to an article.
  2. Add a form field with parentheses as part of the name. For example, Caption (optional)
  3. Save, and create a new article.
  4. Add content to the custom field.
  5. Press save.

Expected result

I expect the save button to work.

Actual result

Nothing happens, I can only close.

System information (as much as possible)

MacOS Mojave 10.14.5
Joomla 3.9.8
local dev server on PHP 7.2.14

Additional comments

It's definitely the parentheses, as changing the field name to Caption - optional makes it work

Console spits out this error:
Error: Syntax error, unrecognized expression: #jform_com_fields__insights-images__insights-images0__Caption (optional)-lbl jquery.min.js:2:12666

avatar crystalenka crystalenka - open - 1 Jul 2019
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jul 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Jul 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Jul 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 1 Jul 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Jul 2019

@Quy @richard67 comment?

avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Jul 2019
Status New Information Required
avatar Quy
Quy - comment - 1 Jul 2019
avatar SharkyKZ
SharkyKZ - comment - 2 Jul 2019

PR #25398 should fix this once it's ready for testing.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Jul 2019

@SharkyKZ please comment when Pull Request is ready for test so this Issue can be closed.

avatar richard67
richard67 - comment - 2 Jul 2019

@SharkyKZ I think PR #25398 is ready for testing. Do you agree?

avatar SharkyKZ
SharkyKZ - comment - 2 Jul 2019

I don't know if it's OK to manually edit minified files, or do we always need to use a minifier. It looks OK on review though.

avatar richard67
richard67 - comment - 2 Jul 2019

@crystalenka Please test PR #25398 .

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Jul 2019
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2019-07-02 15:22:59
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - close - 2 Jul 2019

Add a Comment

Login with GitHub to post a comment