';
// From warehouse
print '| ';
-print $formproduct->selectWarehouses($id_sw, 'id_sw', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, array(), 'minwidth200imp maxwidth200');
+print img_picto($langs->trans("WarehouseSource"), 'stock', 'class="paddingright"').$formproduct->selectWarehouses($id_sw, 'id_sw', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, array(), 'minwidth200imp maxwidth200');
print ' | ';
// To warehouse
print '';
-print $formproduct->selectWarehouses($id_tw, 'id_tw', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, array(), 'minwidth200imp maxwidth200');
+print img_picto($langs->trans("WarehouseTarget"), 'stock', 'class="paddingright"').$formproduct->selectWarehouses($id_tw, 'id_tw', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, array(), 'minwidth200imp maxwidth200');
print ' | ';
// Product
-print '';
+print ' | ';
$filtertype = 0;
if (!empty($conf->global->STOCK_SUPPORTS_SERVICES)) {
$filtertype = '';
@@ -362,11 +362,13 @@ if ($conf->global->PRODUIT_LIMIT_SIZE <= 0) {
$limit = $conf->global->PRODUIT_LIMIT_SIZE;
}
-$form->select_produits($id_product, 'productid', $filtertype, $limit, 0, -1, 2, '', 1, array(), 0, '1', 0, 'minwidth200imp maxwidth300', 1);
+print img_picto($langs->trans("Product"), 'product', 'class="paddingright"');
+print $form->select_produits($id_product, 'productid', $filtertype, $limit, 0, -1, 2, '', 1, array(), 0, '1', 0, 'minwidth200imp maxwidth300', 1, '', null, 1);
print ' | ';
// Batch number
if ($conf->productbatch->enabled) {
print '';
+ print img_picto($langs->trans("LotSerial"), 'lot', 'class="paddingright"');
print '';
print ' | ';
}
diff --git a/htdocs/variants/ajax/orderAttribute.php b/htdocs/variants/ajax/orderAttribute.php
index 1d9e1b8e892..81632dc0164 100644
--- a/htdocs/variants/ajax/orderAttribute.php
+++ b/htdocs/variants/ajax/orderAttribute.php
@@ -58,7 +58,7 @@ top_httphead();
// Registering the location of boxes
if (GETPOSTISSET('roworder')) {
- $roworder = GETPOST('roworder', 'alpha', 2);
+ $roworder = GETPOST('roworder', 'intcomma', 2);
dol_syslog("AjaxOrderAttribute roworder=".$roworder, LOG_DEBUG);
diff --git a/htdocs/variants/list.php b/htdocs/variants/list.php
index bfe4dd0aa72..dd55b028ff9 100644
--- a/htdocs/variants/list.php
+++ b/htdocs/variants/list.php
@@ -99,7 +99,8 @@ $forcereloadpage = empty($conf->global->MAIN_FORCE_RELOAD_PAGE) ? 0 : 1;
var roworder = cleanSerialize(decodeURI($("#tablelines").tableDnDSerialize()));
$.post("/variants/ajax/orderAttribute.php",
{
- roworder: roworder
+ roworder: roworder,
+ token: ""
},
function() {
if (reloadpage == 1) {