Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Fixed saving to default field names on form view
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Jun 27, 2019
1 parent 0bad2ba commit a53c433
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.1.5] - 2019-06-26
### Fixed
- saving to default field names on form view.

## [0.1.4] - 2019-06-26
### Fixed
- rendering of non-default lat/long fields on index page.
Expand Down
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export default {
methods: {
fill: function (formData) {
formData.append(this.field.latitude, this.value.latitude);
formData.append(this.field.longitude, this.value.longitude);
formData.append((this.field.latitude || "latitude"), this.value.latitude);
formData.append((this.field.longitude || "longitude"), this.value.longitude);
},
handleChange: function (value) {
Expand Down

0 comments on commit a53c433

Please sign in to comment.