Project

General

Profile

Bug #19545 » 9705-t3lib_tcemain_v2.diff

Administrator Admin, 2008-11-12 10:14

View differences:

t3lib/class.t3lib_tcemain.php (Arbeitskopie)
$newVersion_placeholderFieldArray[$TCA[$table]['ctrl']['tstamp']] = time();
}
// Copy page access settings from original page to placeholder
$perms_clause = $this->BE_USER->getPagePermsClause(1);
$access = t3lib_BEfunc::readPageAccess($uid,$perms_clause);
$newVersion_placeholderFieldArray['perms_userid'] = $access['perms_userid'];
$newVersion_placeholderFieldArray['perms_groupid'] = $access['perms_groupid'];
$newVersion_placeholderFieldArray['perms_user'] = $access['perms_user'];
$newVersion_placeholderFieldArray['perms_group'] = $access['perms_group'];
$newVersion_placeholderFieldArray['perms_everybody'] = $access['perms_everybody'];
$newVersion_placeholderFieldArray['t3ver_label'] = 'MOVE-TO PLACEHOLDER for #'.$uid;
$newVersion_placeholderFieldArray['t3ver_move_id'] = $uid;
$newVersion_placeholderFieldArray['t3ver_state'] = 3; // Setting placeholder state value for temporary record
......
$newVersion_placeholderFieldArray[$TCA[$table]['ctrl']['label']] = '[MOVE-TO PLACEHOLDER for #'.$uid.', WS#'.$this->BE_USER->workspace.']';
$newVersion_placeholderFieldArray['pid'] = 0; // Initially, create at root level.
$id = 'NEW_MOVE_PLH';
$this->insertDB($table,$id,$newVersion_placeholderFieldArray,FALSE); // Saving placeholder as 'original'
(2-2/2)