Merge branch 'feature/schoolgegevensStdSOP' into develop

This commit is contained in:
Monique
2022-12-09 17:34:52 +01:00
@@ -22,15 +22,9 @@ class Schooldetails_model extends MY_Model{
} }
function get_details2($schoolid){ function get_details2($schoolid){
$this->sql="SELECT id, organisatie_id, $this->sql="SELECT id, organisatie_id, COALESCE(straat, '') AS straat, COALESCE(plaats, '') AS plaats,
if (straat AND straat is not null, straat, '' ) as straat, COALESCE(telefoon, '') AS telefoon, COALESCE(email1, '') AS email1, COALESCE(web, '') AS web,
if (plaats AND plaats is not null, plaats, '') as plaats, COALESCE(directie, '') AS directie, COALESCE(ib, '') AS ib, COALESCE(email2, '') AS email2
if (telefoon AND telefoon is not null, telefoon,'') as telefoon,
if (email1 AND email1 is not null, email1, '') as email1,
if (web AND web is not null, web , '') as web,
if (directie AND directie is not null, directie ,'') as directie,
if (ib AND ib is not null, ib, '') as ib,
if (email2 AND email2 is not null, email2, '') as email2
FROM tb_schooldetails FROM tb_schooldetails
WHERE organisatie_id={$schoolid}"; WHERE organisatie_id={$schoolid}";
return $this->get_query_row(); return $this->get_query_row();