Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public function actionDelete($id)
try
{

$this->loadModel ( $id )->delete ();
Yii::app()->db->createCommand()->delete('syslog','host=:host',array(':host'=>$id));
Yii::app()->db->createCommand()->delete('host','id=:host',array(':host'=>$id));
Yii::app()->db->createCommand()->delete('syslog','host=:host',array(':host'=>$id));
Yii::app()->db->createCommand()->delete('archive','host=:host',array(':host'=>$id));
$trans->commit ();
Yii::app()->user->addFlash('info',"<strong>Host deleted</strong>");
Expand Down
2 changes: 1 addition & 1 deletion htdocs/protected/modules/settings/views/host/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
array('label'=>'Create Host','url'=>array('create')),
array('label'=>'Update Host','url'=>array('update','id'=>$model->id)),
array('label'=>'Resolve Host','url'=>'#','linkOptions'=>array('submit'=>array('resolve','id'=>$model->id))),
array('label'=>'Delete Host','url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
array('label'=>'Delete Host','url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Deleting this host will also purge its log entries. Are you sure you want to delete this item?')),
);
?>

Expand Down