What I understand:
In the filterfields column the filterstring/condition and the view type of the filter is stored together.
s() stands for simpleview
In the codeblock below the "s(" and ")" gets stripped. The bug effect we see is that the crippled string gets stored and then stripped again after opening the db again. So the remove function does not remove the entire string but only first 2 chars and the last one. Where should I search to get this fixed?
File: comprofiler.admin.html.php
Line: 822 - 852
CB 1.2 RC4
[code:1] $simChecked="";
$advChecked="";
$simStyle="display:none;";
$advStyle="display:none;";
$filttype=substr($row->filterfields,0,1);
$row->filterfields=substr($row->filterfields,2,-1);
if($filttype=="a"«») {
$advChecked="CHECKED";
$advStyle="display:block;";
} else {
$simChecked="checked=\"checked\"";
$simStyle="display:block;";
}
$filterlists=explode(" AND ",$row->filterfields);
$filterparts=array();
$i=0;
foreach($filterlists as $filterlist) {
$filterlistpart=array();
$filterlistpart=explode(" ",$filterlist);
$filterparts[$i]=str_replace("`","",$filterlistpart[0]);
$_CB_database->setQuery("SELECT title FROM #__comprofiler_fields WHERE name='".$filterparts[$i]."' LIMIT 1"«»);
$filtertitle=$_CB_database->loadResult();
$filterparts[$i]=$filterlist;
$filterparts[$i]=str_replace(array("'","`"«»),"",str_replace($filterparts[$i],getLangDefinition($filtertitle),$filterlist));
$i++;
}[/code:1]
Beat, I hope you can give me a hint
PS: METHOD NOT IMPLEMENTED error is caused by // commented php lines