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 ...@@ -46,6 +46,7 @@ class Animal extends Objet
"i" => 3 "i" => 3
), ),
"race" => array( "race" => array(
"label" => "Espece : Race",
"t" => "ForeignField", "t" => "ForeignField",
"i" => 4 "i" => 4
)); ));
......
...@@ -15,14 +15,12 @@ class DateField extends Field ...@@ -15,14 +15,12 @@ class DateField extends Field
{ {
if (isset($_POST[$this->name])) { if (isset($_POST[$this->name])) {
$this->value = $_POST[$this->name]; $this->value = $_POST[$this->name];
if($this->value == " ") { if(count($this->value) < 4) {
$this->value = null; $this->value = null;
} }
} else { } else {
$this->value = null; $this->value = null;
} }
print($this->name);
print($this->value);
return true; return true;
} }
......
...@@ -38,7 +38,9 @@ class Field { ...@@ -38,7 +38,9 @@ class Field {
return true; return true;
} }
$this->value = $_POST[$this->name]; if(isset($_POST[$this->name])) {
$this->value = $_POST[$this->name];
}
return true; 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