Integrator in 1.8 has bugs
Greetings:
Been trying out 1.8 release straight out of CVS and I found a couple of bugs in $tikiwiki_root/lib/integrator/integrator.php; these bugs manifest when one is trying to modify an existing repository or existing rule.
The bugs that I found are in the following two functions:
1. add_replace_repository
2. add_replace_rule
In both the fix is to bind the query with the appropriate number of parameters. For instance in add_replace_repository, this statement
should be used for insert:
$result = $tikilib->query($query, array($name, $path, $start, $css, $vis, $cacheable, $exp, $descr));
and this statement should be used for update:
$result = $tikilib->query($query, array($name, $path, $start, $css, $vis, $cacheable, $exp, $descr,(int) $repID));
In the existing code, the updates fail because they miss $repID or $ruleID parameter respectively.
Feeling too lazy to file a bug report. Let me know if this is not the appropriate forum to post such messages.
Vijay Aswadhati