Skip to content

Commit

Permalink
fix select
Browse files Browse the repository at this point in the history
  • Loading branch information
00rane00 committed Feb 9, 2018
1 parent 4e0e4d4 commit 53c38d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Models/Rapyd/FieldsProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,8 @@ static public function addFields($content, $rapyd, $type,$show=false)
$field->display_column ? $field->display_column : 'name',
$relation_model->getQualifiedKeyName()
)->toArray();
unset($options[count($options)+2]);
// dd($options);
array_unshift($options,"- Select -");
$options[0] = "- Select -";
ksort($options);
$f->options($options);
} else echo 'Relation not found! (' . $field->relation . ')';
// тип поля "tags": задяння ajax обробника
Expand Down

0 comments on commit 53c38d6

Please sign in to comment.