On Sat, Aug 21, 2010 at 11:02 PM, David DURIEUX <[email protected]>wrote:
> Always with libserverphp, there is problems :
>
> The hook addsections must return an array with id for each section, but
> for each section we must have only a number (because it is using by a key
> number in an array. So we can't have possibility to have same key
> for 2 sections.
>
> For example, I store in my DB, HARDWARE section in a table and SOFTWARE
> section in an other. And we can have same id. it's a big PROBLEM.
>
>
> Other things works for the moment ;)
>
>
Hi,
I began to develop an solution to fix this problem.
In the addsections hook, the user have to send an associative array (section
type / id).
For example: array('SOFTWARES' => array(4, 5, 6, 7),
I noticed some anomalies
_______________________________________________
Fusioninventory-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-devel