Updated activity CSV
added missing track name Change-Id: I9b7bff44bdce35e8a9bb69d42010c5efd8d249e4 Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
2838e04166
commit
38227cd844
@ -146,6 +146,10 @@ final class AdminPresentationCSVSerializer extends AdminPresentationSerializer
|
||||
$values['extra_questions'] = $values['extra_questions'] . str_replace(",", "", (string)$answer);
|
||||
}
|
||||
|
||||
if($presentation->hasCategory()){
|
||||
$values['track'] = $presentation->getCategory()->getTitle();
|
||||
}
|
||||
|
||||
return $values;
|
||||
}
|
||||
}
|
@ -33,6 +33,9 @@ class AdminSummitEventCSVSerializer extends SummitEventSerializer
|
||||
if(isset($values['description'])){
|
||||
$values['description'] = strip_tags($values['description']);
|
||||
}
|
||||
if($summit_event->hasCategory()){
|
||||
$values['track'] = $summit_event->getCategory()->getTitle();
|
||||
}
|
||||
return $values;
|
||||
}
|
||||
}
|
@ -385,6 +385,10 @@ class SummitEvent extends SilverstripeBaseModel
|
||||
}
|
||||
}
|
||||
|
||||
public function hasCategory():bool{
|
||||
return $this->getCategoryId() > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user