[Obm] Retours OBM 2.1.0rc2

Pierre Baudracco pierre.baudracco at aliasource.fr
Tue Oct 30 12:09:14 CET 2007


Corrected for 2.1.0 final

To patch : file php/calendar/calendar_query.inc, line 1903
Replace
   $access = of_right_entity_for_consumer("resource", "user", $obm["uid"],
$right, $e["attendees"]["resource"]);
BY
   $access = of_right_entity_for_consumer("Resource", "user", $obm["uid"],
$right, $e["attendees"]["resource"]);

"only difference is the "r" case in the word resource
> Je confirme :
>
> *Database error:* Invalid SQL: SELECT e.resource_id as id,
> e.resource_name as label, entityright_consumer_id, entityright_read,
> entityright_write, entityright_admin FROM EntityRight LEFT JOIN resource
> as e ON entityright_entity_id = e.resource_id WHERE entityright_entity =
> 'resource' AND entityright_consumer = 'user' AND
> (entityright_consumer_id = '8' OR entityright_consumer_id = 0) ORDER BY
> e.resource_name
> *MySQL Error*: 1146 (Table 'obm.resource' doesn't exist)
> Session halted.
>
>
> Jimmy Goudin a écrit :
> > Erreur rencontrée sur l'agenda :*
> >
> > *Lors de la sélection d'un évènement sur une ressource *
> >
> > Database error:* Invalid SQL: SELECT e.resource_id as id,
> > e.resource_name as label, entityright_consumer_id, entityright_read,
> > entityright_write, entityright_admin FROM EntityRight LEFT JOIN
> > resource as e ON entityright_entity_id = e.resource_id WHERE
> > entityright_entity = 'resource' AND entityright_consumer = 'user' AND
> > (entityright_consumer_id = '1' OR entityright_consumer_id = 0) ORDER
> > BY e.resource_name
> > *MySQL Error*: 1146 (Table 'obm.resource' doesn't exist)
> > Session halted.
> >
> > Lorsque l'on rentre un évènement seulement pour une ressource nous
> > avons le message :
> >
> > *Warning*: array_diff() [ function.array-diff
> > <http://docuweb/obm/calendar/function.array-diff>]: Argument #1 is not
> > an array in */var/www/obm-2.1.0rc2/php/calendar/calendar_query.inc* on
> > line *3882*
> >
> > *Warning*: Invalid argument supplied for foreach() in
> > */var/www/obm-2.1.0rc2/obminclude/of/of_query.inc* on line *2071

-- 
Pierre Baudracco - AliaSource Groupe Linagora - 05 62 19 24 91 -
www.aliasource.fr


More information about the Obm mailing list