From f7f90b51c71ab9b3253c14566814b37473303269 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 25 Apr 2011 09:27:25 +0000 Subject: [PATCH] Works on possibility to change customer when cloning (enable in customer orders) New: can send extra input in ajax dialog --- htdocs/commande/fiche.php | 1 + htdocs/core/class/html.form.class.php | 9 +++++---- htdocs/langs/en_US/companies.lang | 1 + htdocs/langs/fr_FR/companies.lang | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 144e6719714..df365b6d365 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1498,6 +1498,7 @@ else $formquestion=array( //'text' => $langs->trans("ConfirmClone"), //array('type' => 'checkbox', 'name' => 'clone_content', 'label' => $langs->trans("CloneMainAttributes"), 'value' => 1), + //array('type' => 'checkbox', 'name' => 'update_prices', 'label' => $langs->trans("PuttingPricesUpToDate"), 'value' => 1), array('type' => 'other', 'name' => 'socid', 'label' => $langs->trans("SelectThirdParty"), 'value' => $html->select_company(GETPOST('socid'),'socid','(s.client=1 OR s.client=3)')) ); // Paiement incomplet. On demande si motif = escompte ou autre diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 5af432450ee..5d4e0c634df 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1992,7 +1992,7 @@ class Form if ($formquestion) { - $more.=''."\n"; + $more.='
'."\n"; $more.=''."\n"; foreach ($formquestion as $key => $input) { @@ -2064,7 +2064,8 @@ class Form // New code using jQuery only $formconfirm.= '
'; - $formconfirm.= img_help('','').' '.$more.$question; + $formconfirm.= img_help('','').' '.$question; + if (! empty($more)) $formconfirm.= '

'.$more.'

'; $formconfirm.= '
'."\n"; $formconfirm.= '
'.$formquestion['text'].'