ABOUT MULTIPLE TEXTAREA ON EDIT MODE

QuestionsABOUT MULTIPLE TEXTAREA ON EDIT MODE
Alex asked 11 years ago

Hi, let's say we have multiple textarea on edit mode because on the database there is a DESCRIPTION in SPANISH and another row as a DESCRIPTION in ENGLISH. So you have 2 textarea ($col["formatter"] = "wysiwyg") on the edit mode. The problem is that it seems that on the render of the texarea on edit mode, texarea only renders the last of the two rows data, the result is that you have the same data in the two text areas on edit mode (when you are going to edit a row) so the data is incorrect and not the same on the DB, and anyway the data on the DB is correct:

// DEScripcion in SPANISH
$col = array();
$col["title"] = "Descripción";
$col["name"] = "descripcion";
$col["width"] = "10";
$col["editable"] = true;
$col["edittype"] = "textarea"; // render as textarea on edit
$col["formatter"] = "wysiwyg";
$col["editrules"] = array("required"=>true);
$col["editoptions"] = array("rows"=>5, "cols"=>40); // with these attributes
// don't show this column in list, but in edit/add mode
$col["hidden"] = true;
$col["editrules"] = array("edithidden"=>true);
$cols[] = $col;

// DEScripcion in ENGLISH
$col = array();
$col["title"] = "Descripción Inglés";
$col["name"] = "descripcioneng";
$col["width"] = "10";
$col["editable"] = true;
$col["edittype"] = "textarea"; // render as textarea on edit
$col["formatter"] = "wysiwyg";
$col["editrules"] = array("required"=>true);
$col["editoptions"] = array("rows"=>5, "cols"=>40); // with these attributes
// don't show this column in list, but in edit/add mode
$col["hidden"] = true;
$col["editrules"] = array("edithidden"=>true);
$cols[] = $col;

So what's the problem in this code? should be correct, but something is wrong!

Thank's

5 Answers
Abu Ghufran answered 11 years ago

Hello Alex,

I have regenerated this issue. I'll be updating after some resolution.

Abu Ghufran answered 11 years ago

Hello,

I've emailed you an update.

Alex answered 11 years ago

Ok got the update; it works now! Thanks.

Laurent Morin answered 10 years ago

Hello we have the same problem, can we have the solutions please.

Abu Ghufran answered 10 years ago

It's fixed in current version. Ticket is quite old and so is your version.
Check your email.

Your Answer

14 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?