Project

General

Profile

Actions

Bug #17383

closed

JS error in new content element wizard with a single item

Added by Stano Paska over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-06-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If BE user has allowed only one type of content element, and click on it, js error occured:
Error: document.editForm.tempB0 has no properties
Source File: http://agriculture.kios.sk/typo3/sysext/cms/layout/db_new_content_el.php ?id=17&colPos=0&sys_language_uid=0&uid_pid=17 &returnUrl=%2Ftypo3%2Fsysext%2Fcms%2Flayout%2Fdb_layout.php%3Fid%3D17
Line: 1

When I allow BE users to add two types of content element, everything is ok.
(issue imported from #M5789)


Files

shot.gif (5.38 KB) shot.gif Administrator Admin, 2007-06-13 12:51
0005789.patch (752 Bytes) 0005789.patch Administrator Admin, 2007-06-13 13:17
Actions #1

Updated by Oliver Hader over 17 years ago

I can confirm this

Actions #2

Updated by Oliver Hader over 17 years ago

The attached patch should solve the problem.

Actions #3

Updated by Stano Paska over 17 years ago

Quick response, Oliver. Thanks.
I want only add one note: This error occurs only when user clicks on icon or text. If he clicks on radio button, it works.

Is this patch added into next version of Typo3?

Actions #4

Updated by Oliver Hader over 17 years ago

Did you test the patch and can confirm, that it solves the problem also on your TYPO3 system?
If this patch is accepted by the TYPO3 Core Team this week, it will be part of the next release TYPO3 4.1.2 which is scheduled to next week.

Actions #5

Updated by Stano Paska over 17 years ago

Yes, I tested this patch and it works.

Actions #6

Updated by Oliver Hader over 17 years ago

Committed to SVN
  • TYPO3_4-1 (rev. 2373)
  • Trunk (rev. 2374)
Actions

Also available in: Atom PDF