Fix add schema to the "auto" parts request

This commit is contained in:
Christopher Joe 2017-09-04 15:37:22 +12:00 committed by Damian Mooyman
parent 6f7b0d9ae0
commit afda58c515
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class FormSchema
$return = ['id' => $schemaID];
// Default to schema if not set
if ($form && ($wantSchema || empty($schemaParts))) {
if ($form && ($wantSchema || empty($schemaParts) || $auto)) {
$return['schema'] = $this->getSchema($form);
}