Hi,
OK, I think I see the issue. search() actually grav $IN->get_hash again, thus ignoring the value we overwrote. So try:
my $catid = $DB->table("Category")->select( ['ID'], { Name => $args->{catname} })->fetchrow;
if ($catid =~ /^\d+$/) {
$args->{catid} = $catid;
$IN->param('catid' => $catid);
}
}
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
OK, I think I see the issue. search() actually grav $IN->get_hash again, thus ignoring the value we overwrote. So try:
Code:
if ($args->{catname}) { my $catid = $DB->table("Category")->select( ['ID'], { Name => $args->{catname} })->fetchrow;
if ($catid =~ /^\d+$/) {
$args->{catid} = $catid;
$IN->param('catid' => $catid);
}
}
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!