Fixed: ref supplier was visible with label Ref customer.
This commit is contained in:
parent
d94d7f683b
commit
c8cd36f3e6
@ -935,8 +935,8 @@ if ($action == 'create')
|
|||||||
}
|
}
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans('Ref').'</td><td colspan="2">'.$tmpcode.'</td></tr>';
|
print '<tr><td class="fieldrequired">'.$langs->trans('Ref').'</td><td colspan="2">'.$tmpcode.'</td></tr>';
|
||||||
|
|
||||||
// Ref Int
|
// Ref supplier
|
||||||
print '<tr><td>'.$langs->trans('RefCustomer').'</td>';
|
print '<tr><td>'.$langs->trans('RefSupplier').'</td>';
|
||||||
print '<td colspan="2"><input type="text" size="5" name="ref_supplier" id="ref_supplier" value="'.GETPOST('ref_supplier','alpha').'"></td></tr>';
|
print '<td colspan="2"><input type="text" size="5" name="ref_supplier" id="ref_supplier" value="'.GETPOST('ref_supplier','alpha').'"></td></tr>';
|
||||||
|
|
||||||
// Customer
|
// Customer
|
||||||
@ -1134,9 +1134,9 @@ else
|
|||||||
|
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td width="20%">';
|
print '<td width="20%">';
|
||||||
print $form->editfieldkey("RefCustomer",'ref_supplier',$object->ref_supplier,$object,$user->rights->contrat->creer);
|
print $form->editfieldkey("RefSupplier",'ref_supplier',$object->ref_supplier,$object,$user->rights->contrat->creer);
|
||||||
print '</td><td>';
|
print '</td><td>';
|
||||||
print $form->editfieldval("RefCustomer",'ref_supplier',$object->ref_supplier,$object,$user->rights->contrat->creer);
|
print $form->editfieldval("RefSupplier",'ref_supplier',$object->ref_supplier,$object,$user->rights->contrat->creer);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
@ -1290,7 +1290,7 @@ else
|
|||||||
$productstatic->ref=$objp->label;
|
$productstatic->ref=$objp->label;
|
||||||
print $productstatic->getNomUrl(0,'',16);
|
print $productstatic->getNomUrl(0,'',16);
|
||||||
}
|
}
|
||||||
if (! empty($conf->global->PRODUIT_DESC_IN_FORM) and $objp->description)
|
if (! empty($conf->global->PRODUIT_DESC_IN_FORM) and $objp->description)
|
||||||
print '<br>'.dol_nl2br($objp->description);
|
print '<br>'.dol_nl2br($objp->description);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user