pass $content to controller, not $latestContent

$latestContent and $content are different objects. If $latestContent
is passed to the controller, its status will be updated in the object
but $content has still the old status. Getting the status later on
from $content, still returns the old content.
This commit is contained in:
Uwe Steinmann 2017-07-13 14:55:51 +02:00
parent 6e37e1ded6
commit d6e10dddd6

View File

@ -94,7 +94,7 @@ if($_FILES["reviewfile"]["tmp_name"]) {
}
$controller->setParam('document', $document);
$controller->setParam('content', $latestContent);
$controller->setParam('content', $content);
$controller->setParam('reviewstatus', $_POST["reviewStatus"]);
$controller->setParam('reviewtype', $_POST["reviewType"]);
if ($_POST["reviewType"] == "grp") {