Changeset 1899


Ignore:
Timestamp:
01/02/17 09:14:54 (7 years ago)
Author:
nanardon
Message:

Don't return object if unexported

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/objects.pm

    r1870 r1899  
    253253 
    254254        my $sth = $base->db->prepare_cached( 
    255             sprintf(q{ select 1 from %s where %s = ?}, 
     255            sprintf(q{ select 1 from %s where %s = ? %s}, 
    256256                $base->db->quote_identifier($class->_object_table), 
    257257                $base->db->quote_identifier($class->_key_field), 
     258                ($base->{wexported} ? '' : 'and exported = true'), 
    258259            ), 
    259260        ); 
Note: See TracChangeset for help on using the changeset viewer.