mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Update api_memberstypes.class.php
This commit is contained in:
parent
7a84cb1fc8
commit
22ea6fa0ab
|
|
@ -101,13 +101,13 @@ class MembersTypes extends DolibarrApi
|
|||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent_type as t";
|
||||
$sql.= ' WHERE t.entity IN ('.getEntity('member_type').')';
|
||||
|
||||
// Nature
|
||||
// Nature
|
||||
if ($nature != 'all') {
|
||||
if ($nature == 'both') {
|
||||
$sql.= ' AND t.morphy IS NULL ';
|
||||
} else {
|
||||
$sql.= ' AND (t.morphy IS NULL OR t.morphy = "'.$nature.'")';
|
||||
}
|
||||
$sql.= ' AND (t.morphy IS NULL OR t.morphy = "'.$nature.'")';
|
||||
}
|
||||
}
|
||||
|
||||
// Add sql filters
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user