Skip to content
Snippets Groups Projects
Commit 3314c5e6 authored by pbarroca's avatar pbarroca
Browse files

Suggestion Achat: refacto méthode de validation passée dans Storm

parent 5d3fef76
Branches
Tags
No related merge requests found
......@@ -66,19 +66,6 @@ class Class_SuggestionAchat extends Storm_Model_Abstract {
}
public function validateAttribute($name, $validator_class, $message=null) {
$validator = new $validator_class();
$valid = $validator->isValid($this->_get($name));
if ($message)
return $this->checkAttribute($name, $valid, $message);
foreach($validator->getMessages() as $message)
$this->checkAttribute($name, $valid, $message);
return $this;
}
public function sendMail($from) {
$body_text = '';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment