? Failure

User tests: Successful: Unsuccessful:

avatar sfs-it
sfs-it
4 Mar 2020

if Itemval was fill from multilne textarea, on line 91 on uncompressed original cms file, fail.
Preprocessing it doesnt happen.

Pull Request for Issue # .

Summary of Changes

Add a check before of error, and transform textarea itemval into an array with only one element without using JSON.parse.

Testing Instructions (tested on Joomla3.10 to 3.10.15

create a custom field with more than one line on textarea

Expected result

create a item with textarea value

Actual result

page stop processing on line 91

Documentation Changes Required

avatar sfs-it sfs-it - open - 4 Mar 2020
avatar sfs-it sfs-it - change - 4 Mar 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Mar 2020
Category JavaScript
avatar sfs-it sfs-it - change - 4 Mar 2020
The description was changed
avatar sfs-it sfs-it - edited - 4 Mar 2020
avatar ReLater
ReLater - comment - 5 Mar 2020

I can not reproduce your issue. Perhaps some screenshots can help us???

I've tested with current Joomla 3.9.16-beta. Or are you talking about Joomla 3.10?

What I've tried:

  • All inside Joomla backend.
  • I activated Debug Mode to load cms-uncompressed.js in backend.
  • I created a custom field of type Textarea for Articles.
  • I entered multiple lines in field "Default Value". I don't know where else???
  • And I don't see errors in JS browser console or elsewhere when I save the field.
  • I don't see errors in JS browser console or elsewhere when I save an article with several lines in this textarea field.
avatar sfs-it
sfs-it - comment - 6 Mar 2020

Hi I try to give you a full report.
My issue born in a new component view, I've a custom field that create a children formfield for subform standard field, my subclass create a subform with some standard custom fields.
It work correctly but when I fill a textarea with 2 lines of code it break the js.
Now I've reproduce the same situation with a subform "statical" with standard fields only
(I place the XML for view attached to this comment, you can use everywhere instead of component view xml into this zip file form.zip

I can not reproduce your issue. Perhaps some screenshots can help us???

This is the rendering of view when you place 1 line text on textarea
2020-03-06 10_59_18-Menus_ Edit Item - Joomla 3 testing - Administration
It will be loaded correcty, but if you place 2 lines text on textarea
2020-03-06 11_03_05-Menus_ Edit Item - Joomla 3 testing - Administration
And save
2020-03-06 11_04_06-Menus_ Edit Item - Joomla 3 testing - Administration
The form "break" on Javascript.
On firefox debug console:
2020-03-06 11_04_41-Strumenti di sviluppo - Menus_ Edit Item - Joomla 3 testing - Administration - h
Using my fix form will reload correctly
2020-03-06 11_07_45-Menus_ Edit Item - Joomla 3 testing - Administration

If i can add some info write me back.

Thanks

avatar sfs-it
sfs-it - comment - 20 Jul 2020

I can not reproduce your issue. Perhaps some screenshots can help us???

I've tested with current Joomla 3.9.16-beta. Or are you talking about Joomla 3.10?

What I've tried:

  • All inside Joomla backend.
  • I activated Debug Mode to load cms-uncompressed.js in backend.
  • I created a custom field of type Textarea for Articles.
  • I entered multiple lines in field "Default Value". I don't know where else???
  • And I don't see errors in JS browser console or elsewhere when I save the field.
  • I don't see errors in JS browser console or elsewhere when I save an article with several lines in this textarea field.

Did you see my last replay with details, can I tell you anything more?

avatar laoneo
laoneo - comment - 15 Apr 2022

Doers it mean that the issue appears only with your custom component?

avatar sfs-it
sfs-it - comment - 19 Apr 2022

Doers it mean that the issue appears only with your custom component?

I find a issue, on my component, I dont know if someone do the same thing, find the same problem.
when I made my code call the function and fail... I dont know anything else.

TY for your time, I stop to develop joomla related software 2 years ago.

avatar zero-24
zero-24 - comment - 12 Jun 2022

no problem will close here as the issue could not be reproduced.

avatar zero-24 zero-24 - change - 12 Jun 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-06-12 17:35:20
Closed_By zero-24
Labels Added: ?
Removed: ?
avatar zero-24 zero-24 - close - 12 Jun 2022

Add a Comment

Login with GitHub to post a comment