Skip to content
Snippets Groups Projects
Commit d3aafeb3 authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

add label for foreign key

parent 37931eaf
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,6 @@ class Employe extends Personne
"t" => "BoolField",
"label" => "Veterinaire",
"i" => 9
),
"id_national" => array(
"label" => "Identifiant national",
......
......@@ -13,7 +13,7 @@ class ForeignField {
$this->primary = $primary;
$cl = ucfirst($name);
$this->choices = $cl::getAll();
$label = ucfirst($name);
$this->label = ucfirst($name);
}
public function html($form) {
......
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