diff --git a/application/models/SurveysGroups.php b/application/models/SurveysGroups.php index 891734b1a7d..7891cccf913 100644 --- a/application/models/SurveysGroups.php +++ b/application/models/SurveysGroups.php @@ -110,6 +110,16 @@ public function search() )); } + public function getParentTitle() + { + // "(gsid: ".$data->parent_id.")"." ".$data->parentgroup->title, + if (empty($this->parent_id)){ + return ""; + }else{ + return $this->parentgroup->title; + } + } + /** * Returns the static model of the specified AR class. * Please note that you should have this exact method in all your CActiveRecord descendants!