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

fix syntax error

parent 0f532ec3
No related branches found
No related tags found
No related merge requests found
......@@ -25,11 +25,8 @@ 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);
print($value->$_primaryAttr);
print($value->{$value->$_primaryAttr}());
if($this->value == $value->{$value->$_primaryAttr}()) { $selected = "selected"; } else { $selected = ""; }
$html .= "<option value=".$value->{$value->$_primaryAttr}()." ".$selected." >".$value->str()."</option>";
if($this->value == $value->{$value->_primaryAttr}()) { $selected = "selected"; } else { $selected = ""; }
$html .= "<option value=".$value->{$value->_primaryAttr}()." ".$selected." >".$value->str()."</option>";
}
$html.= '</select>
......
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