Permalink
Browse files

fix refactoring oversights

  • Loading branch information...
flack committed Oct 26, 2017
1 parent a5b416b commit 1f79cabba7702a2fc0939d044a38bae77066fa5d
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/net/nehmer/blog/viewer.php
@@ -142,12 +142,12 @@ private function _add_categories()
$this->_request_data['categories'] = explode(',', $this->_config->get('categories'));
foreach ($this->_request_data['schemadb']->all() as $name => $schema) {
if ( $schema->has_field('catgories')
if ( $schema->has_field('categories')
&& $schema->get_field('categories')['type'] == 'select') {
// TODO: Merge schema local and component config categories?
$options = array_combine($this->_request_data['categories'], $this->_request_data['categories']);
$field =& $schema->get_field('categories');
$field['categories']['type_config']['options'] = $options;
$field['type_config']['options'] = $options;
}
}
}

0 comments on commit 1f79cab

Please sign in to comment.