}
}
- public function acknowledgeWarning($id = null, $warning_id = null,/* $validate = false,*/ $escapedApplianceReference = null) {
+ public function acknowledgeWarning($id = null, $warning_id = null, $validate = false, $escapedApplianceReference = null) {
// GETTING CHANGELOG
$this->Changelog->id = $id;
$version_date = $warning['Warning']['creation'];
// CREATING ENTRY ONLY IF THERE IS A VALIDATION (Disabled)
- //if($validate && $validate != "false") {
+ if($validate && $validate != "false") {
$applianceReference = str_replace("SLASH", "\\/", $escapedApplianceReference);
//TO-DO : Change AS url recuperation (DB or file)
$versions_id[] = $version_id.";".$version_date;
$this->Changelog->value('versions', implode('|', $versions_id));
}
- //}
+ }
// DELETING WARNING
$warningsController->Warning->delete($warning_id);