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 '
'; - $act->ag_comment=(isset($_POST['ag_comment']))?Decode($_POST['ag_comment']):""; + // $act->ag_comment=(isset($_POST['ag_comment']))?Decode($_POST['ag_comment']):""; + $act->ag_comment=""; echo_debug("action.inc",__LINE__,"call display"); echo $act->Display('NEW',false); @@ -233,7 +234,7 @@ if ( $sub_action=='detail' ) $act->ag_id=$_REQUEST['ag_id']; echo $act->get(); $act->ag_comment=Decode($act->ag_comment); - echo ''; + echo ''; echo JS_SEARCH_CARD; echo $act->display('UPD',false); echo ''; diff --git a/include/class_action.php b/include/class_action.php index a2511951d..57b6a1bda 100644 --- a/include/class_action.php +++ b/include/class_action.php @@ -310,6 +310,7 @@ class action $r.=$hidden->IOValue('f_id_dest',$this->f_id_dest); $hidden2=new widget('hidden'); $r.=$hidden2->IOValue('f_id_exp',$this->f_id_exp); + $r.="

"; // 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.="";