Skip to content

Commit

Permalink
Fixed form builder default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyleeh committed Jan 14, 2019
1 parent 3300a96 commit 634c5c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Html/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function buildField($name)
// Hidden fields
if($field['type'] == 'hidden')
{
return $this->htmlBuilder->hidden($name);
return $this->htmlBuilder->hidden($name, (isset($field['default']) ? $field['default'] : null));
}

return $this->buildFieldStart($name, $field) . $this->buildFieldInput($name, $field) . $this->buildFieldEnd($name, $field);
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class AppServiceProvider extends ServiceProvider
{

const VERSION = '1.3-alpha.1';
const VERSION = '1.3-alpha.2';

/**
* Bootstrap any application services.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "umomega/bookkeeper",
"description": "Laravel Powered Finance Tracker and CRM.",
"keywords": ["umomega", "bookkeeper", "finance", "crm", "multilingual", "laravel", "laravel5", "php", "php7", "finance-application", "bookkeeping", "finance-tracker"],
"version": "1.3-alpha.1",
"version": "1.3-alpha.2",
"license": "MIT",
"type": "project",
"authors": [
Expand Down

0 comments on commit 634c5c6

Please sign in to comment.