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.= " FROM ".MAIN_DB_PREFIX."adherent_type as t";
|
||||||
$sql.= ' WHERE t.entity IN ('.getEntity('member_type').')';
|
$sql.= ' WHERE t.entity IN ('.getEntity('member_type').')';
|
||||||
|
|
||||||
// Nature
|
// Nature
|
||||||
if ($nature != 'all') {
|
if ($nature != 'all') {
|
||||||
if ($nature == 'both') {
|
if ($nature == 'both') {
|
||||||
$sql.= ' AND t.morphy IS NULL ';
|
$sql.= ' AND t.morphy IS NULL ';
|
||||||
} else {
|
} else {
|
||||||
$sql.= ' AND (t.morphy IS NULL OR t.morphy = "'.$nature.'")';
|
$sql.= ' AND (t.morphy IS NULL OR t.morphy = "'.$nature.'")';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add sql filters
|
// Add sql filters
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user