From e754fe31d1a75b9712166ee855c0a91d9b5b770b Mon Sep 17 00:00:00 2001
From: sparkyx
Date: Sat, 6 Jan 2007 21:10:36 +0000
Subject: [PATCH] Bug : duplicate document
---
include/action.inc.php | 5 +++--
include/class_action.php | 8 ++++++--
include/class_contact.php | 2 +-
3 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/include/action.inc.php b/include/action.inc.php
index b70e96f03..986669b71 100644
--- a/include/action.inc.php
+++ b/include/action.inc.php
@@ -206,7 +206,8 @@ if ( isset ($_POST['add_action_here']) )
// Add hidden tag
echo '
";
// show the list of the concern operation
@@ -897,9 +898,12 @@ class action
$this->ag_ref_ag_id,
$this->ag_id);
ExecSql($this->db,$sql);
-
- if ( sizeof($_FILES) !=0 )
+ echo_debug('class_action',__LINE__,$_FILES);
+ if ( strlen(trim($_FILES['file_upload']['name'])) !=0 )
{
+ echo_debug('class_action',__LINE__,'sizeof($_FILES) = '.sizeof($_FILES));
+ echo_debug('class_action',__LINE__,'$this->d_id = '.$this->d_id);
+
// Upload a new document
$doc=new Document($this->db);
if ( $this->d_id !=0 )
diff --git a/include/class_contact.php b/include/class_contact.php
index 8f82be122..2f1d027cd 100644
--- a/include/class_contact.php
+++ b/include/class_contact.php
@@ -130,7 +130,7 @@ $back_url=urlencode($_SERVER['REQUEST_URI']);
$r.="".$contact->strAttribut(ATTR_DEF_EMAIL)." | ".
" ".$contact->strAttribut(ATTR_DEF_FAX)." | ".
" ".$l_company_name. " | ".
- ' Courrier | ';
+ ' Courrier | ';
$r.="";