[TYPO3-core] RFC: Bug 5704: IRRE - Children on the table pages get the pid of the parent page in pagetree

Franz Holzinger franz at fholzinger.com
Tue Jun 12 11:00:12 CEST 2007


Hello Oliver, 

>> if (t3lib_div::testInt($this->inlineFirstPid)) {
>> Add here a check to the pid field of the current record.
>> $calcPRec = t3lib_BEfunc::getRecord('pages', $this->inlineFirstPid);
>> Check the parent record. And if he has no permissions for the parent
>> record then nothing shall continue from here.
> 
> Yes, and exactly this insn't possible, because the pid of the new child
> record is "NEW12345678" in this case an cannot be checked. The creation
> of new child records is done via AJAX call. The only possibility would
> be to forward also the data of the parent record with each AJAX call
> concerning only child records.

I think a child record will always be created on the same page as the parent 
record. Or is it possible to put the child records on different pages than 
the parent record? 

Maybe it would be fine to provide the uid of the parent table and the parent 
table's name as a parameter for the client record. Then the pid could be 
fetched from the database. The pid must already be inside of the parent 
record. 

> In exactly this case, the check will be done by TCEmain. If the parent
> (here a new record on the table pages) could not be create, because of
> missing access rights, the child records won't be stored because the pid
> with the value "NEW12345678" could not be substituted by a proper integer.
This could be avoided if the pid would have been read from the parent 
record. The child records should be put on the current page in the backend, 
or not? 

 - Franz


More information about the TYPO3-team-core mailing list