Skip to main content Help Control Panel

 

support «   Soupçons de bogues «  

bug de la fonction allow_creation dans files.php [Integrated]

Bernard Paques -- on Apr. 26 2010, from nearby-an-airport
YACS Leader

WorkflowSupport request
StatusSolution has been fully integrated
OwnerBernard Paques
Progress100%

Trouvé dans Yacs Martin 10.2.12 et qui génère un :

Fatal error: Cannot use object of type Section as array in /home/nautical/public_html/yacs/articles/articles.php on line 1454

lorsque l'on affiche une page avec un compte de membre sans droit particulier sur la page.

Il y a de grande chance que ce bug soit déjà corrigé dans la dernière release mais, au cas où, voici le correctif.

Dans la fonction allow_creation dans files/files.php, il faut remplacer :

if(Articles::is_owned($anchor$item))

par :

if(Articles::is_owned($item$anchor))

Comments


Jmarcfrom Cannes
821 posts

on Apr. 26 2010


La page a été créée

J.Juraverfrom Entre chaise et clavier...
3710 posts

on Apr. 30 2010


Un développeur peut-il confirmer la correction en 10.3.14 svp ?




Je ne m'attarde pas, j'ai mon yacs en double file...

Yacs on my blog | Suivez le blog Yacs | Yacs Showroom | Plugin Firefox de recherche dans Yetanoz |

Christophe Battarelfrom Grenoble-Chambery
1044 posts

on May 19 2010


en tout cas, le bug a été corrigé sur le svn.




Christophe Battarel - Société altairis -

Bernard Paquesfrom nearby-an-airport
Associate, 8372 posts

on May 30 2010


Le "bon" code est celui qui a été livré dans yacs Martin RC7.


Bernard Paquesfrom nearby-an-airport
Associate, 8372 posts

on May 30 2010


Bernard Paques est le nouveau propriétaire
La solution a été intégrée