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

fix syntax error

parent 1b968d31
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,8 @@ class ForeignField {
$this->name = $name;
$this->value =& $value;
$this->primary = $primary;
$this->choices = ucfirst($name)::getAll();
$cl = ucfirst($name);
$this->choices = $cl::getAll();
}
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