we can see what we are doing
This commit is contained in:
parent
5f4e2dc565
commit
6fc444e045
@ -327,11 +327,31 @@ if (! empty($id) || ! empty($ref))
|
|||||||
|
|
||||||
if ($action == 'add') {
|
if ($action == 'add') {
|
||||||
$title = $langs->trans('NewProductCombination');
|
$title = $langs->trans('NewProductCombination');
|
||||||
|
print dol_fiche_head();
|
||||||
|
$features = $_SESSION['addvariant_'.$object->id];
|
||||||
|
//First, sanitize
|
||||||
|
print '<div id="parttoaddvariant">';
|
||||||
|
if (! empty($features)) {
|
||||||
|
foreach ($features as $feature) {
|
||||||
|
|
||||||
|
$explode = explode(':', $feature);
|
||||||
|
|
||||||
|
if ($prodattr->fetch($explode[0]) < 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($prodattr_val->fetch($explode[1]) < 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
print '<i>' . $prodattr->label . '</i>:'. $prodattr_val->value . ' ';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print '</div>';
|
||||||
|
print dol_fiche_end();
|
||||||
} else {
|
} else {
|
||||||
$title = $langs->trans('EditProductCombination');
|
$title = $langs->trans('EditProductCombination');
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<div id="parttoaddvariant"></div>';
|
|
||||||
print_fiche_titre($title);
|
print_fiche_titre($title);
|
||||||
|
|
||||||
if ($action == 'add') {
|
if ($action == 'add') {
|
||||||
@ -347,7 +367,7 @@ if (! empty($id) || ! empty($ref))
|
|||||||
$prodattr_alljson[$each->id] = $each;
|
$prodattr_alljson[$each->id] = $each;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user