[dev] Category - getCategoriesByAttributes

Chuck Hagenbuch chuck at horde.org
Fri Oct 31 07:06:08 PST 2003


Quoting Mikael Geijer <mikael at nufort.net>:

> Will also match a modify action within the given timestamps (if there is
> one..).

Ah, okay, I understand, I think... However:

> I made a patch for lib/Category/sql.php that also singles out the
> timestamp. There might be more elegant way of doing it, the SQL is
> getting pretty complex..
>
> Cheers
>
> /Mikael
>
> 703d702
> <           $attnames[] = 'AND a1.attribute_name = a' . $i .
> '.attribute_name';
> 706d704
> <       $attnames = implode(' ',$attnames);
> 709c707
> <                          ' WHERE c.group_uid = %s AND %s%s %s',
> ---
>  >                          ' WHERE c.group_uid = %s AND %s%s',
> 714,715c712
> <                          $levelQuery,
> <                        $attnames);
> ---
>  >                          $levelQuery);

This diff looks like it was generated backwards? Also hard to tell what you're
changing. Can you re-send a diff -u with a bit more context?

Thanks!

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
Born right the first time.


More information about the dev mailing list