1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 23:00:51 +03:00
This commit is contained in:
Mzhelskiy Maxim 2014-02-08 17:03:08 +07:00
parent e232b7e928
commit fda7a51786
2 changed files with 7 additions and 10 deletions

View file

@ -37,16 +37,6 @@ class ModulePoll_EntityAnswer extends EntityORM {
return true;
}
protected function afterDelete() {
/**
* Удаляем голосования
*/
$aVoteItems=$this->Poll_GetVoteItemsByAnswerId($this->getId());
foreach($aVoteItems as $oVote) {
$oVote->Delete();
}
}
public function ValidateCheckTitle() {
$this->setTitle(htmlspecialchars($this->getTitle()));
return true;

View file

@ -70,6 +70,13 @@ class ModulePoll_EntityPoll extends EntityORM {
foreach($aAnswerItems as $oAnswer) {
$oAnswer->Delete();
}
/**
* Удаляем голосования
*/
$aVoteItems=$this->Poll_GetVoteItemsByPollId($this->getId());
foreach($aVoteItems as $oVote) {
$oVote->Delete();
}
}
public function ValidateCheckTitle() {