Project

General

Profile

Actions

Bug #17753

closed

Button for creating new records disappeared on nested child records if a parent record reached the maxitems value

Added by Malte Jansen about 17 years ago. Updated over 16 years ago.

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

0%

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

Description

I have two tables which I connect with irre. When I make following reference it the irre element is not shown:
Screenshot a: table2 (visible) > table3 (visible) > table2 (invisble)
When I'm using follwing it works fine:
Screenshot b: table3 (visible) > table2 (visible)

I'm also using for both tables:
"foreign_field" => "parentuid",
"foreign_table_field" => "parenttable",

It also does not work with the trunk version.

(issue imported from #M6651)


Files

07-11-04_irre02a.JPG (59.9 KB) 07-11-04_irre02a.JPG Administrator Admin, 2007-11-04 17:27
07-11-04_irre02b.JPG (37.7 KB) 07-11-04_irre02b.JPG Administrator Admin, 2007-11-04 17:27
0006651.patch (9.14 KB) 0006651.patch Administrator Admin, 2007-12-15 15:21
Actions #1

Updated by Malte Jansen about 17 years ago

Can somebody move it to the category: IRRE.

Thanks

Actions #2

Updated by Malte Jansen about 17 years ago

This bug accours if following is not set:

["config"]["appearance"]["newRecordLinkPosition"]

Actions #3

Updated by Malte Jansen about 17 years ago

Perhaps there should be a default value for the "appearance". Than it would also work with more levels...

Actions #4

Updated by Oliver Hader almost 17 years ago

Could you please attach your extension (or send it via mail to oh (at) inpublica /dot/ de)? Thx!

Actions #5

Updated by Oliver Hader almost 17 years ago

Problem:
On using nested inline records with the 'maxitems' property set, I happens, that the "create new record" button disappears also for nested children. These buttons are selected only by classname and thus also those buttons of the children were hidden. Furthermore IE7 has some issues on using the getElementsByClassName method.

Solution:
Add a md5-hash of the specific parent to each "create new record" button and select the objects by classname and this hash. Furthermore the "object.getElementsByClassName(classname)" calls were modified to "Element.getElementsByClassName(object, classname)".

Please test the attached patch and give me some feedback. Thanks!

Actions #6

Updated by Oliver Hader almost 17 years ago

Committed to SVN:
  • TYPO3_4-1 (rev. 2857)
  • Trunk (rev. 2858)
Actions

Also available in: Atom PDF