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.

Ticket #852: jacl2db_admin_subject_translated.diff

File jacl2db_admin_subject_translated.diff, 1.5 KB (added by foxmask, 12 years ago)
  • lib/jelix-admin-modules/jacl2db_admin/controllers/users.classic.php

     
    126126        $p = jAcl2Db::getProfile();
    127127        $rs = jDao::get('jelix~jacl2subject',$p)->findAllSubject();
    128128        foreach($rs as $rec){
    129             $rights[$rec->id_aclsbj] = $grouprights;
     129            $rights[$rec->label_key] = $grouprights;
    130130        }
    131131
    132132
    133133        $rs = jDao::get('jelix~jacl2rights',$p)->getRightsByGroups($gid);
    134134        foreach($rs as $rec){
    135             $rights[$rec->id_aclsbj][$rec->id_aclgrp] = true;
     135            $subject = jDao::get('jelix~jacl2subject',$p)->get($rec->id_aclsbj);
     136            $rights[$subject->label_key][$rec->id_aclgrp] = true;
    136137        }
    137138
    138139        $tpl = new jTpl();
  • lib/jelix-admin-modules/jacl2db_admin/templates/user_rights.tpl

     
    4343{assign $line = true}
    4444{foreach $rights as $subject=>$right}
    4545<tr class="{if $line}odd{else}even{/if}">
    46     <th>{$subject}</th>
     46    <th>{jlocale $subject}</th>
    4747    {assign $hasr=false}
    4848    {foreach $right as $group=>$r}
    4949    {if $group == $hisgroup->id_aclgrp}