Merge pull request #8561 from frederic34/patch-11
Update combinations.php
This commit is contained in:
commit
e642535389
@ -28,7 +28,7 @@ require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductCombination.class.php';
|
|||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
$id = GETPOST('id');
|
$id = GETPOST('id', 'int');
|
||||||
|
|
||||||
if (!$id) {
|
if (!$id) {
|
||||||
print json_encode(array(
|
print json_encode(array(
|
||||||
|
|||||||
@ -383,7 +383,7 @@ if (! empty($id) || ! empty($ref))
|
|||||||
|
|
||||||
select.empty().append('<option value="">Loading...</option>');
|
select.empty().append('<option value="">Loading...</option>');
|
||||||
|
|
||||||
jQuery.getJSON("<?php echo dol_buildpath('/variants/ajax/get_attribute_values.php', 2) ?>", {
|
jQuery.getJSON("ajax/get_attribute_values.php", {
|
||||||
id: jQuery(this).val()
|
id: jQuery(this).val()
|
||||||
}, function(data) {
|
}, function(data) {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
@ -699,8 +699,12 @@ if (! empty($id) || ! empty($ref))
|
|||||||
print '</div>';
|
print '</div>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
llxHeader();
|
||||||
|
// not found
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user