Merge branch '3.4' into translations
This commit is contained in:
commit
a06de736c2
@ -65,7 +65,7 @@ if ($action == 'add')
|
|||||||
{
|
{
|
||||||
if (! GETPOST('titre'))
|
if (! GETPOST('titre'))
|
||||||
{
|
{
|
||||||
setEventMessage($langs->trans("ErrorFieldRequired",$langs->trans("Title")), 'errors');
|
setEventMessage($langs->transnoentities("ErrorFieldRequired",$langs->trans("Title")), 'errors');
|
||||||
$action = "create";
|
$action = "create";
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ if ($action == 'create')
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Title
|
// Title
|
||||||
print '<tr><td>'.$langs->trans("Title").'</td><td>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("Title").'</td><td>';
|
||||||
print '<input class="flat" type="text" name="titre" size="24" value="'.$_POST["titre"].'">';
|
print '<input class="flat" type="text" name="titre" size="24" value="'.$_POST["titre"].'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
|||||||
@ -233,7 +233,7 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
print $form->select_company($socid,'socid',$filter,1);
|
print $form->select_company($socid,'socid',$filter,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
// User
|
// User
|
||||||
print '<tr><td>'.$langs->trans("CreatedBy").'</td><td>';
|
print '<tr><td>'.$langs->trans("Author").'</td><td>';
|
||||||
print $form->select_users($userid,'userid',1);
|
print $form->select_users($userid,'userid',1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
// Year
|
// Year
|
||||||
|
|||||||
@ -72,7 +72,6 @@ $cancel <> $langs->trans("Cancel") &&
|
|||||||
$error=0;
|
$error=0;
|
||||||
for($i=0;$i<$_POST["max_prod"];$i++)
|
for($i=0;$i<$_POST["max_prod"];$i++)
|
||||||
{
|
{
|
||||||
print "<br> : ".$_POST["prod_id_chk".$i];
|
|
||||||
if ($_POST["prod_id_chk".$i] > 0)
|
if ($_POST["prod_id_chk".$i] > 0)
|
||||||
{
|
{
|
||||||
if($product->add_sousproduit($id, $_POST["prod_id_".$i],$_POST["prod_qty_".$i]) > 0)
|
if($product->add_sousproduit($id, $_POST["prod_id_".$i],$_POST["prod_qty_".$i]) > 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user