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

ChangeLog
t3lib/class.t3lib_tcemain.php

index c8a3e46..158d4e9 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 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)
        * Fixed bug #9136: Less JS in backend.php / Framehandling problem
 
 2008-12-30  Oliver Hader  <oliver@typo3.org>
index a03180a..96ffac2 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: