Skip to content
Snippets Groups Projects
Commit 37d5f5ba authored by goujonpa's avatar goujonpa
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents 7cf57040 a9461143
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ class Animal extends Objet
"i" => 3
),
"race" => array(
"label" => "Espece : Race",
"t" => "ForeignField",
"i" => 4
));
......
......@@ -15,14 +15,12 @@ class DateField extends Field
{
if (isset($_POST[$this->name])) {
$this->value = $_POST[$this->name];
if($this->value == " ") {
if(count($this->value) < 4) {
$this->value = null;
}
} else {
$this->value = null;
}
print($this->name);
print($this->value);
return true;
}
......
......@@ -38,7 +38,9 @@ class Field {
return true;
}
$this->value = $_POST[$this->name];
if(isset($_POST[$this->name])) {
$this->value = $_POST[$this->name];
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment