[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] ged/inc class.ged_dm.inc.php
From: |
Pascal Vilarem |
Subject: |
[Phpgroupware-cvs] ged/inc class.ged_dm.inc.php |
Date: |
Fri, 07 Sep 2007 14:07:04 +0000 |
CVSROOT: /sources/phpgroupware
Module name: ged
Changes by: Pascal Vilarem <maat> 07/09/07 14:07:04
Modified files:
inc : class.ged_dm.inc.php
Log message:
bug fixed : project root and names were deleted on folder update.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/ged/inc/class.ged_dm.inc.php?cvsroot=phpgroupware&r1=1.46&r2=1.47
Patches:
Index: class.ged_dm.inc.php
===================================================================
RCS file: /sources/phpgroupware/ged/inc/class.ged_dm.inc.php,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -b -r1.46 -r1.47
--- class.ged_dm.inc.php 4 Sep 2007 14:38:26 -0000 1.46
+++ class.ged_dm.inc.php 7 Sep 2007 14:07:04 -0000 1.47
@@ -198,6 +198,7 @@
function update_file($new_file)
{
$myelement=$this->get_element_info($new_file['element_id']);
+ $myparent=$this->get_element_info($myelement['parent_id']);
if ( $this->debug('update_file') )
print ( "update_file: entering.<br>\n");
@@ -259,7 +260,7 @@
$this->db->query($sql, __LINE__, __FILE__);
$this->db->unlock();
- if ( array_key_exists('project_name', $new_file))
+ if ( isset($new_file['project_name']) &&
(int)$myparent['project_root'] == 0 )
{
$this->set_project($new_file['element_id'],
$new_file['project_name']);
}
- [Phpgroupware-cvs] ged/inc class.ged_dm.inc.php,
Pascal Vilarem <=