New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REDSHOP-5923 [Refactor] - Tags System - Refactoring Code - Template section: Product sample #5250
REDSHOP-5923 [Refactor] - Tags System - Refactoring Code - Template section: Product sample #5250
Conversation
…ection: Product sameple
->from($db->qn('#__redshop_catalog', 'c')) | ||
->where($db->qn('c.published') . ' = 1'); | ||
|
||
return $db->setQuery($query)->loadObjectList(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hungnguyenckc Please use \Redshop\DB\Tool::safeSelect($db, $query, true, []);
->from($db->qn('#__redshop_catalog_sample', 'c')) | ||
->where($db->qn('c.published') . ' = 1'); | ||
|
||
return $db->setQuery($query)->loadObjectList(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hungnguyenckc Same here
$query->where($db->qn('c.sample_id') . ' = ' . (int) $sampleId); | ||
} | ||
|
||
return $db->setQuery($query)->loadObjectList(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hungnguyenckc same here
…