Project

General

Profile

Bug #24598 ยป 11572_v2.diff

Administrator Admin, 2011-01-16 14:53

View differences:

t3lib/class.t3lib_befunc.php (Arbeitskopie)
public static function versioningPlaceholderClause($table) {
if ($GLOBALS['TCA'][$table] && $GLOBALS['TCA'][$table]['ctrl']['versioningWS']) {
$currentWorkspace = intval($GLOBALS['BE_USER']->workspace);
if ($currentWorkspace !== 0) {
// show only the items of the current workspace
// if in any workspace other than live
return ' AND (' . $table . '.t3ver_state <= 0 OR ' . $table . '.t3ver_wsid = ' . $currentWorkspace . ')';
} elseif ($GLOBALS['TCA'][$table]['ctrl']['versioningWS'] == 2) {
// if in live workspace, don't show "MOVE-TO-PLACEHOLDERS"
return ' AND (' . $table . '.t3ver_state != 3)';
}
return ' AND (' . $table . '.t3ver_state <= 0 OR ' . $table . '.t3ver_wsid = ' . $currentWorkspace . ')';
}
}
    (1-1/1)