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

Merge fixes to master #77

Merged
merged 5 commits into from
Dec 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion controllers/admin/AdminPsMboModuleController.php
Expand Up @@ -163,6 +163,10 @@ public function displayAjaxGetModulesList()

$categories = $container->get('prestashop.categories_provider')->getCategoriesMenu($modules);

foreach ($categories['categories']->subMenu as &$category) {
$category->name = html_entity_decode($this->trans($category->name, array(), 'Admin.Modules.Feature'));
}

// In newest versions of PrestaShop, a AddonsCollection can be returned.
// We check that we deal with an array, as the class may not exist.
if (!is_array($modules)) {
Expand All @@ -172,6 +176,7 @@ public function displayAjaxGetModulesList()

$modules = $this->getPresentedProducts($modules);
foreach ($modules as $key => &$module) {
$module['attributes']['displayName'] = html_entity_decode($module['attributes']['displayName']);
$module['attributes']['description'] = html_entity_decode($module['attributes']['description']);
$module['attributes']['description'] = htmlspecialchars_decode(
$module['attributes']['description'],
Expand Down Expand Up @@ -216,7 +221,7 @@ private function getPresentedProducts(array &$modules)
return $presentedProducts;
}

public function displayAjaxGetModuleQuickView()
public function displayAjaxGetMboModuleQuickView()
{
$modules = Module::getModulesOnDisk();

Expand Down
2 changes: 1 addition & 1 deletion views/js/controllers/module/module.js
Expand Up @@ -35,7 +35,7 @@ $(document).ready(function() {
},
methods: {
getHref: function(module_name) {
return window.vApp.admin_module_ajax_url_psmbo + '&action=GetModuleQuickView&module_name=' + module_name + '&ajax=1';
return window.vApp.admin_module_ajax_url_psmbo + '&action=GetMboModuleQuickView&module_name=' + module_name + '&ajax=1';
},
getAvgRateClass: function(avg_rate) {
return 'module-stars module-star-ranking-grid-' + Math.round(avg_rate) + ' small';
Expand Down