mirror of
https://github.com/jbcr/core.git
synced 2026-04-26 01:58:15 +02:00
Merge branch 'master' of github.com:bolt/core
This commit is contained in:
@@ -309,6 +309,10 @@ class ContentTypesParser extends BaseParser
|
||||
$field['values'] = array_combine($field['values'], $field['values']);
|
||||
}
|
||||
|
||||
if ($field['type'] === 'select' && ! isset($field['multiple'])) {
|
||||
$field['multiple'] = false;
|
||||
}
|
||||
|
||||
if (empty($field['label'])) {
|
||||
$field['label'] = ucwords($key);
|
||||
}
|
||||
|
||||
@@ -485,7 +485,7 @@ class ContentEditController extends TwigAwareController implements BackendZoneIn
|
||||
]);
|
||||
|
||||
if ($taxonomy === null) {
|
||||
$taxonomy = $this->taxonomyRepository->factory($key, $slug);
|
||||
$taxonomy = $this->taxonomyRepository->factory($key, (string) $slug);
|
||||
}
|
||||
|
||||
$content->addTaxonomy($taxonomy);
|
||||
|
||||
@@ -660,7 +660,7 @@ class ContentExtension extends AbstractExtension
|
||||
|
||||
foreach ($taxonomy['options'] as $key => $value) {
|
||||
$options[] = [
|
||||
'key' => $key,
|
||||
'key' => (string) $key,
|
||||
'value' => $value,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user