Permalink
Browse files

Fix notice undefined index for select advanced

  • Loading branch information...
1 parent 13f1f39 commit b0a7e9e43cdbc6bcb4238bf5682e115cbef90b01 @rilwis committed Mar 24, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 inc/fields/select-advanced.php
View
8 inc/fields/select-advanced.php
@@ -44,7 +44,7 @@ static function html( $html, $meta, $field )
);
$html .= self::options_html( $field, $meta );
-
+
$html .= '</select>';
return $html;
@@ -68,11 +68,11 @@ static function normalize_field( $field )
'width' => 'resolve',
'placeholder' => __( 'Select a value', 'rwmb' )
) );
- $field['default'] = isset( $field['default']) ? $field['default'] : $field['placeholder'];
-
+ $field['default'] = isset( $field['default']) ? $field['default'] : $field['js_options']['placeholder'];
+
$field = parent::normalize_field( $field );
return $field;
}
}
-}
+}

0 comments on commit b0a7e9e

Please sign in to comment.