CMS MADE SIMPLE FORGE

Questions

 

[#7122] Summary mode don't working with few category in "category" option

avatar
Created By: Karelin (guro)
Date Submitted: Mon Nov 07 08:23:04 -0500 2011

Assigned To: Nuno Costa (nuno)
Version: 1.0.3
CMSMS Version: 1.9.4.1
Severity: Major
Resolution: None
State: Open
Summary:
Summary mode don't working with few category in "category" option
Detailed Description:
If entered few category name in parameter "category", like '{cms_module
module=Questions category="category1,categoey2,category3"}', then module is not
displayed.

I solved this problem like this:
in file module - /modules/Questions/function.default_summary.php
replace strings in position 34
  $categories = '';
  if( isset($params['category']) && $params['category'] != '' ){
    $categories = str_replace("'",'_',$params['category']);
  }
to
  $categories = '';
  if( isset($params['category']) && $params['category'] != '' ){
    $categories = str_replace("'",'_',$params['category']);
    $categories = preg_replace("|,|","','",$categories);
  }


History

Updates

Updated: 2011-11-07 20:12
assigned_to_id: 106 => 3422

Updated: 2011-11-07 08:23
resolution_id: => 5
assigned_to_id: 3422 => 106