developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 7 years ago

Closed 7 years ago

#1500 closed bug (invalid)

Undefined property: cDaoRecord_jacl2db_Jx_jacl2rights_Jx_mysql::$canceled

Reported by: foxmask Owned by:
Priority: normal Milestone: Jelix 1.3.6
Component: module:jacl2db Version: 1.3.3
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

depuis jelix 1.3 et suivant on a un probleme :

2012-12-24 17:29:34	127.0.0.1	notice	2012-12-24 17:29:34	
[8]	Undefined property: cDaoRecord_jacl2db_Jx_jacl2rights_Jx_mysql::$canceled
/home/foxmask/Public/havefnubb/lib/jelix/plugins/acl2/db/db.acl2.php	57

la colonne canceled n'existe pas dans jac2db. ligne 57 ca donne ca

        if (self::$acl === null) {
            $groups = jAcl2DbUserGroup::getGroups();
            self::$acl=array();
            if (count($groups)) {
                $dao = jDao::get('jacl2db~jacl2rights', 'jacl2_profile');
                foreach($dao->getRightsByGroups($groups) as $rec){
                    // if there is already a right on a same subject on an other group
                    // we should take care when this rights says "cancel"
                    if (isset(self::$acl[$rec->id_aclsbj])) {
                        if ($rec->canceled) {
                            self::$acl[$rec->id_aclsbj] = false;
                        }
                    }
                    else {
                        self::$acl[$rec->id_aclsbj] = ($rec->canceled?false:true);
                    }
                }
            }
        }

Change History (3)

comment:1 Changed 7 years ago by foxmask

  • Component changed from jelix to jelix:plugins:db

comment:2 Changed 7 years ago by laurentj

  • Component changed from jelix:plugins:db to module:jacl2db
  • Milestone set to Jelix 1.3.6

Je viens de vérifier, je n'ai pas ce souci. Les tests ne montrent pas non plus ce genre d'erreur.

Un DAO redéfini et qui n'a pas été mis à jour peut-être ?

comment:3 Changed 7 years ago by foxmask

  • Resolution set to invalid
  • Status changed from new to closed

oui il manque une colonne dans le dao de havefnubb ;) j'aurai dû mieux vérifier la migration jelix 1.2 à 1.3.

Note: See TracTickets for help on using tickets.