Ignore:
Timestamp:
Oct 4, 2012, 10:12:08 AM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Vazba tabulky User na Member oddělena do samostatné tabulky jako vztah N:N.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/finance/user_state.php

    r409 r410  
    2222      if(!$this->System->Modules['User']->CheckPermission('Finance', 'DisplaySubjectState')) return('Nemáte oprávnění');
    2323      $UserId = $this->System->Modules['User']->User['Id'];
    24       $DbResult = $this->Database->query('SELECT * FROM Subject WHERE Id=(SELECT Subject FROM Member WHERE Id=(SELECT Member FROM User WHERE Id='.$UserId.'))');
     24      $DbResult = $this->Database->query('SELECT * FROM Subject WHERE Id=(SELECT Subject FROM Member WHERE Id=(SELECT Customer FROM UserCustomerRel WHERE User='.$UserId.'))');
    2525      $Subject = $DbResult->fetch_assoc();
    2626    }
Note: See TracChangeset for help on using the changeset viewer.