Merge pull request #22565 from hregis/fix_fetch_of_product_is_mandatory
FIX avoid error, check of product fetch is already check before
This commit is contained in:
commit
2e9e060aed
@ -258,12 +258,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
}
|
}
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -183,12 +183,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -184,12 +184,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -169,12 +169,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -200,12 +200,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -183,12 +183,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -201,12 +201,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -162,12 +162,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -185,12 +185,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -184,12 +184,11 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user