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');
|
||||
|
||||
$id = GETPOST('id');
|
||||
$id = GETPOST('id', 'int');
|
||||
|
||||
if (!$id) {
|
||||
print json_encode(array(
|
||||
|
||||
@ -383,7 +383,7 @@ if (! empty($id) || ! empty($ref))
|
||||
|
||||
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()
|
||||
}, function(data) {
|
||||
if (data.error) {
|
||||
@ -699,8 +699,12 @@ if (! empty($id) || ! empty($ref))
|
||||
print '</div>';
|
||||
print '</form>';
|
||||
}
|
||||
} else {
|
||||
llxHeader();
|
||||
// not found
|
||||
}
|
||||
|
||||
|
||||
llxFooter();
|
||||
|
||||
$db->close();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user