Changeset 123


Ignore:
Timestamp:
Sep 15, 2014 12:13:44 PM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php

    r122 r123  
    124124    $currentFile = TblspacefilePeer::doSelectOne($c);
    125125
    126     $c = new Criteria();
    127     $c->add(TblspacefilePeer::FILE_NAME, $currentFile->getFileName());
    128     $c->add(TblspacefilePeer::FILE_CATEGORY, $destination);
    129     $c->add(TblspacefilePeer::FILE_USER, $userId);
    130     $oldFile = TblspacefilePeer::doSelectOne($c);
    131    
    132     $fileName = $oldFile != null ? 'Copy of '.$currentFile->getFileName():$currentFile->getFileName();
     126    $fileName = $currentFile->getFileCategory() == $destination ? 'Copy of '.$currentFile->getFileName():$currentFile->getFileName();
    133127   
    134128    $tblfile = new Tblspacefile();
Note: See TracChangeset for help on using the changeset viewer.