From 2368cc676ef783e4fc2471daed2ff1b9ee84d89f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 4 Sep 2010 12:52:06 +0000 Subject: [PATCH] Work on task #10579 : Simplify code using editor --- htdocs/fourn/commande/fiche.php | 2 +- htdocs/lib/doleditor.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index eb612ed928a..a8ffa2a2c5c 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -1108,7 +1108,7 @@ if ($id > 0 || ! empty($ref)) require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $nbrows=ROWS_2; if (! empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT; - $doleditor=new DolEditor('eldesc',$commandline->description,200,'dolibarr_details','',false,true,$conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS,70,$nbrows); + $doleditor=new DolEditor('eldesc',$commandline->description,200,'dolibarr_details','',false,true,$conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS,$nbrows,70); $doleditor->Create(); print ''; diff --git a/htdocs/lib/doleditor.class.php b/htdocs/lib/doleditor.class.php index e2e708ad1b0..ea6c20864a8 100644 --- a/htdocs/lib/doleditor.class.php +++ b/htdocs/lib/doleditor.class.php @@ -109,7 +109,7 @@ class DolEditor { $this->content = $content; $this->htmlname = $htmlname; - $this->rows=max(4,$rows); + $this->rows=max(ROWS_3,$rows); $this->cols=max(40,$cols); } }