Skip to content
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

Merged
merged 4 commits into from Mar 17, 2020

Conversation

hungnguyenckc
Copy link
Contributor

@hungnguyenckc hungnguyenckc changed the title REDSHOP-5923 [Refactor] - Tags System - Refactoring Code - Template section: Product sameple REDSHOP-5923 [Refactor] - Tags System - Refactoring Code - Template section: Product sample Mar 16, 2020
->from($db->qn('#__redshop_catalog', 'c'))
->where($db->qn('c.published') . ' = 1');

return $db->setQuery($query)->loadObjectList();
Copy link
Contributor

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();
Copy link
Contributor

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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hungnguyenckc same here

@anhredweb anhredweb merged commit aba808f into redCOMPONENT-COM:develop Mar 17, 2020
@anhredweb anhredweb mentioned this pull request Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants