Skip to content

Commit

Permalink
[5.4] MSPB-370: Remove blank space from address in the E911 Form (#1216
Browse files Browse the repository at this point in the history
…) (#1242)
  • Loading branch information
pcandia committed Sep 19, 2024
1 parent 0513d06 commit e962ace
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/apps/common/submodules/e911/e911.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ define(function(require) {
},

e911Format: function(data) {
if (_.isUndefined(data)) {
return;
}

data.full_street_address = _.get(data, 'legacy_data.house_number') + ' ' + _.get(data, 'street_address');
return _.merge({}, data, {
notification_contact_emails: _
.chain(data)
Expand Down
2 changes: 1 addition & 1 deletion src/apps/common/submodules/e911/views/dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="control-group">
<label class="control-label" for="street_address">{{ i18n.e911.addressLine1 }}</label>
<div class="controls">
<input id="street_address" type="text" placeholder='{{ i18n.e911.addressLine1 }}' name="street_address" value="{{legacy_data.house_number}} {{street_address}}" />
<input id="street_address" type="text" placeholder='{{ i18n.e911.addressLine1 }}' name="street_address" value="{{full_street_address}}" />
</div>
</div>
<div class="control-group">
Expand Down

0 comments on commit e962ace

Please sign in to comment.