fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [14993]


From: nelson . guerra
Subject: [Fmsystem-commits] [14993]
Date: Wed, 11 May 2016 00:23:39 +0000 (UTC)

Revision: 14993
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14993
Author:   nelson224
Date:     2016-05-11 00:23:39 +0000 (Wed, 11 May 2016)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/phpgwapi/inc/class.vfs_sql.inc.php

Modified: branches/dev-syncromind-2/phpgwapi/inc/class.vfs_sql.inc.php
===================================================================
--- branches/dev-syncromind-2/phpgwapi/inc/class.vfs_sql.inc.php        
2016-05-11 00:22:33 UTC (rev 14992)
+++ branches/dev-syncromind-2/phpgwapi/inc/class.vfs_sql.inc.php        
2016-05-11 00:23:39 UTC (rev 14993)
@@ -1942,13 +1942,20 @@
                                                }
                                        }
                                        
-                                       $file_name = $data['id'].'_#' 
.$t->fake_name_clean;
-                                       
+                                       $file_name = $t->fake_leading_dirs 
.'/'.$data['id'].'_#' .$t->fake_name_clean;
+                                       $t2 = $this->path_parts(array(
+                                                       'string'        => 
$file_name,
+                                                       'relatives'     => 
array($data['relatives'][1])
+                                               )
+                                       );      
+                                                       
                                        $query = 
$GLOBALS['phpgw']->db->query("UPDATE phpgw_vfs SET 
owner_id='{$this->working_id}',"
-                                       . " 
directory='{$t->fake_leading_dirs_clean}',"
-                                       . " name='{$file_name}'"
+                                       . " 
directory='{$t2->fake_leading_dirs_clean}',"
+                                       . " name='{$t2->fake_name_clean}'"
                                        . " WHERE 
owner_id='{$this->working_id}' AND file_id='{$data['id']}'" . 
$this->extra_sql(VFS_SQL_UPDATE), __LINE__, __FILE__);
-
+                                       
+                                       $t = $t2;
+                                       
                                        $set_attributes_array = array
                                        (
                                                'createdby_id'  => $account_id,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]