cc-4301: Fixed bug where owner_id would be null whenever show is recorded.

This commit is contained in:
Rudi Grinberg 2012-08-27 17:58:09 -04:00
parent 583d3837be
commit 7f66bdbb66
3 changed files with 19 additions and 4 deletions

View file

@ -39,7 +39,8 @@ class PluploadController extends Zend_Controller_Action
$upload_dir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload";
$filename = $this->_getParam('name');
$tempname = $this->_getParam('tempname');
$result = Application_Model_StoredFile::copyFileToStor($upload_dir, $filename, $tempname);
$result = Application_Model_StoredFile::copyFileToStor($upload_dir,
$filename, $tempname);
if (!is_null($result))
die('{"jsonrpc" : "2.0", "error" : '.json_encode($result).'}');