Project

General

Profile

Actions

Bug #17687

closed

Function getUpdateJS doesn't work properly (eg. Front End User Registration)

Added by Philip Almeida over 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Miscellaneous
Target version:
-
Start date:
2007-10-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

To transverse array with LIST I add to change the from:

$JSPart='';
$updateValues=t3lib_div::trimExplode(',',$fieldList);

TO:
$JSPart='';
$updateValues=t3lib_div::trimExplode(',',$fieldList);
+ reset($updateValues);

I add -> reset($updateValues);

This function is in file: /sysext/cms/tslib/class.tslib_content.php

This function is used for example in ext srfeuserregister.

The function is not updating fields correctly.
(issue imported from #M6531)


Files

0006531.diff (416 Bytes) 0006531.diff Administrator Admin, 2007-10-18 11:50

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #14367: class.tslib_content.php function getUpdateJS produce JS error messagesClosedThomas Hempel2004-10-26

Actions
Actions #1

Updated by Thomas Hempel over 16 years ago

Can you describe this issue a bit more detailed?

I can't see the point. What's going wrong without the patch?

Greets,
Thomas

Actions #2

Updated by Philip Almeida over 16 years ago

Hello Thomas,
Without the patch the code does not retrieve this:
<script type="text/javascript">
/*<![CDATA[*/
updateForm('fe_users_form','FE[fe_users][username]','')
updateForm('fe_users_form','FE[fe_users][password]','e10adc3949ba59abbe56e057f20f883e')
updateForm('fe_users_form','FE[fe_users][usergroup]','96677859')
updateForm('fe_users_form','FE[fe_users][name]','philip')
updateForm('fe_users_form','FE[fe_users][address]','')
updateForm('fe_users_form','FE[fe_users][telephone]','')
updateForm('fe_users_form','FE[fe_users][fax]','')

/*]]>*/
&lt;/script&gt;

It just retrieves this:

<script type="text/javascript">
/*<![CDATA[*/

/*]]>*/
&lt;/script&gt;
Actions #3

Updated by Thomas Hempel over 16 years ago

Hi Philip,

I uploaded a little bit cleaner patch file but I didn't changed anything in the patch. The RFC is commited to core list.

Greets,
Thomas

Actions #4

Updated by Thomas Hempel over 16 years ago

Commited to trunk and branch 4.1

Actions

Also available in: Atom PDF