Hi there,
I was having some problems today when using {exp:favorites:save}
I am using the favorites tag on my website, in an ‘events’ section.
Logged in members can visit event information pages, and declare if they are attending or not.
When users tried to attend (i.e: save a favourite), the ‘no entry found’ error was being returned.
The module was failing to get the ID of the url_title with future entries that have numbers in, instead getting the id “2008” from the following URL title:
hamilton_zombie_walk_2008
Entries with numbers in the url_titles and in the past work fine, but future entries with numbers in the url_title were the ones causing problems.
I found the cause of the problem at line 1815 in mod.favorites.php:
if ( preg_match( "/(\d+)/", $qstring, $match ) )
{
$this->entry_id = $match['1'];
return TRUE;
}
...commenting this out has fixed my problem.
If there is a proper fix available, great
I hope this is of some help.
