...
 
Commits (2)
......@@ -2,7 +2,7 @@
class UploadSaveAction extends CAction {
//$folder is the $type of the element
public function run($dir,$folder=null,$ownerId=null,$input, $contentKey=false, $docType=false, $rename=false, $folderId=null, $surveyId=null, $subDir=null) {
public function run($dir,$folder=null,$ownerId=null,$input, $contentKey=false, $docType=false, $rename=false, $folderId=null, $surveyId=null, $subDir=null, $subKey=null) {
$res = array('result'=>false, 'msg'=>Yii::t("document","Something went wrong with your upload!"));
if (Person::logguedAndValid())
......@@ -79,6 +79,9 @@ class UploadSaveAction extends CAction {
);
if(isset($_POST["subKey"]))
$params["subKey"]=$_POST["subKey"];
else if (!empty($subKey)){
$params["subKey"]=$subKey;
}
if(isset($_POST["cryptage"]))
$params["cryptage"]=$_POST["cryptage"];
if(isset($_POST["restricted"]))
......