Fixed bug #8361: Stage change notification emails not send when publishing from Live...
authorBenni Mack <benni.mack@typo3.org>
Thu, 1 Jan 2009 15:59:46 +0000 (15:59 +0000)
committerBenni Mack <benni.mack@typo3.org>
Thu, 1 Jan 2009 15:59:46 +0000 (15:59 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4634 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index ba3054d..0d88ac9 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-01  Benjamin Mack  <benni@typo3.org>
+
+       * Fixed bug #8361: Stage change notification emails not send when publishing from Live workspace (Thanks to Andreas Wolf)
+
 2008-12-30  Francois Suter <francois@typo3.org>
 
        * Fixed bug #10035: Function index not up to date in class t3lib_div
index 0323d74..ce7bf65 100755 (executable)
@@ -4692,7 +4692,9 @@ class t3lib_TCEmain       {
                if ($errorCode = $this->BE_USER->workspaceCannotEditOfflineVersion($table, $id))        {
                        $this->newlog('Attempt to set stage for record failed: '.$errorCode,1);
                } elseif ($this->checkRecordUpdateAccess($table,$id)) {
-                       $stat = $this->BE_USER->checkWorkspaceCurrent();
+                       $record = t3lib_BEfunc::getRecord($table, $id);
+                       $stat = $this->BE_USER->checkWorkspace($record['t3ver_wsid']);
+                       
                        if (t3lib_div::inList('admin,online,offline,reviewer,owner', $stat['_ACCESS']) || ($stageId<=1 && $stat['_ACCESS']==='member')) {
 
                                        // Set stage of record: