Project

General

Profile

Actions

Bug #14503

closed

Negative PID when creating new content in page module

Added by old_AndiB over 19 years ago. Updated over 19 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2005-01-21
Due date:
% Done:

0%

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

Description

I use the hook in TCEmain (function processDatamap_postProcessFieldArray($status, $table, $id, &$fieldArray, &$reference)) for getting information on new pages and new content created.

But when i use the 'new content' button in top of the 'page'-module and put in new content there is a negative PID in the array '$reference->checkValue_currentRecord'

section from this array
...
[sectionIndex] => 1
[pid] => -385
[sorting] => 896
...

When i create the content from the list-module the PID is ok.

(issue imported from #M702)

Actions #1

Updated by Wolfgang Klinger over 19 years ago

That's ok, negative PID values help in inserting the new content at the right position, take a look at the method "resolvePid" of t3lib_TCEmain (t3lib/class.t3lib_tcemain.php)

Is it ok to close this bug?

Actions #2

Updated by old_AndiB over 19 years ago

Thank you, i didn´t know the method 'resolvePid'. It was just a little bit confusing that a pageID is negative.

I think it´s ok to close this bug.

Actions

Also available in: Atom PDF