mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Update api_memberstypes.class.php
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user