Issue Bug Closed

#17546Default values not used in IRRE children

Jeff Segars 08/21/07, 01:48 updated 06/27/08, 10:53

Description

When editing child records using IRRE, the TCA-defined defaults are not used. This is due to a small error in t3lib_tceforms_inline->getRecord().

The getRecord() method calls t3lib_transferdata->fetchRecord($table, $idList, $operation). According to comments on the fetchRecord method, “If $operation is “new”, then negative ids are meant to point to a “previous” record and positive ids are PID values for new records. Otherwise (for existing records that is) it is straight forward table/id pairs.”.

I updated the call to fetchRecord() so that it passes along the pid when $operation is “new” and this causes defaults to be set properly in my testing.

I’m attaching the one line patch to fix this.

(issue imported from #M6183)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.