diff --git a/index.php b/index.php index fdc87eb..85bff4c 100644 --- a/index.php +++ b/index.php @@ -83,7 +83,7 @@ $type = $field->type; //create the form field - $name = ( $item->multiple ) ? $field->name . "[$i]" : $field->name; + $name = ( $item->multiple ) ? $field->name . '[]' : $field->name; $form_field = Form::$type( $name )->setLabel( $field->label ); //loop through options, if need be diff --git a/readme.md b/readme.md index 9f6284b..0b1620d 100644 --- a/readme.md +++ b/readme.md @@ -55,12 +55,14 @@ Changelog * Better PHP 5.4 compatability (removed calltime pass by reference) * Added option to write generated file to web server for easier programatic access (props [Bill Severe](https://github.com/bsevere)) * Auto-import and propegation of generated values if report directory is set in config file (props [Bill Severe](https://github.com/bsevere)) -* Uses PHP's default temporary directory, rather than the `tmp/` folder within the project to generate files, simplifying installation and improving portability (props [Bill Severe](https://github.com/bsevere)) +* Fix for generated filename to better conform to schema (`digital-strategy` -> `digitalstrategy`) (props [Bill Severe](https://github.com/bsevere)) +* Uses PHP's default temporary directory, rather than the `tmp/` folder within the project to generate files, simplifying installation and improving portability * Moved configuration to separate file to simplifying customization * Better sorting of agencies and action items in datafiles and in the generator (props [Bill Severe](https://github.com/bsevere)) * Abilitity to bypass GitHub service and local cache to force generation of fresh datafiles * Clarified requirements, installation instructions, and usage as a service * Corrected typos in readme (props [Bill Severe](https://github.com/bsevere)) +* Fix for multiple values not being properly propegated into generated file in some circumstances (thanks to John Bent for reporting) License -------