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

debug

parent ba61626b
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ class ForeignField {
<label for="form'.$this->name.'">'.ucfirst($this->name).'</label>
<select class="form-control" name="'.$this->name.'">';
foreach ($this->choices as $value) {
print_r($value);
if($this->value == $value->{$value->$_primaryAttr}()) { $selected = "selected"; } else { $selected = ""; }
$html .= "<option value=".$value->{$value->$_primaryAttr}()." ".$selected." >".$value->str()."</option>";
}
......
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