diff --git a/libraries/plugins/export/ExportSql.class.php b/libraries/plugins/export/ExportSql.class.php index 4d1c7af4c2..0956006d13 100644 --- a/libraries/plugins/export/ExportSql.class.php +++ b/libraries/plugins/export/ExportSql.class.php @@ -262,25 +262,27 @@ class ExportSql extends ExportPlugin $leaf->setText(sprintf(__('Add %s statement'), $drop_clause)); $subgroup->addProperty($leaf); + $subgroup_create_table = new OptionsPropertySubgroup(); + // Add table structure option $leaf = new BoolPropertyItem(); $leaf->setName('create_table'); $leaf->setText( sprintf(__('Add %s statement'), 'CREATE TABLE') ); - - $subgroup_create_table = new OptionsPropertySubgroup(); $subgroup_create_table->setSubgroupHeader($leaf); + $leaf = new BoolPropertyItem(); $leaf->setName('if_not_exists'); $leaf->setText('IF NOT EXISTS'); $subgroup_create_table->addProperty($leaf); + $leaf = new BoolPropertyItem(); $leaf->setName('auto_increment'); $leaf->setText(sprintf(__('%s value'), 'AUTO_INCREMENT')); $subgroup_create_table->addProperty($leaf); + $subgroup->addProperty($subgroup_create_table); - $structureOptions->addProperty($subgroup); // Add view option $leaf = new BoolPropertyItem(); @@ -311,6 +313,8 @@ class ExportSql extends ExportPlugin ); $subgroup->addProperty($leaf); + $structureOptions->addProperty($subgroup); + $leaf = new BoolPropertyItem(); $leaf->setName("backquotes"); $leaf->setText(