Skip to content
Snippets Groups Projects
Commit 90dc470c authored by Simon Mitternacht's avatar Simon Mitternacht
Browse files

Fix name mapping.

parent eaeda4d1
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@
<form id="c_info" class="form-horizontal">
<div class="col-md-6">
<div class="form-group">
<label class="col-md-4 control-label"><span class="required-star">*</span> Bestillertype</label>
<label class="col-md-4 control-label"><span class="required-star">*</span> Kundetype</label>
<div class="col-md-6">
<div class="radio">
<label><input type="radio" name="customertype" value="private" required onClick="setPrivateForm()">Privatperson</label>
......@@ -636,10 +636,10 @@
isPrivate = $('input[customertype]:checked').val() === 'private';
if (isPrivate) {
data.c_name = $('#c_firstname').value + ' ' + $('#c_lastname');
data.c_name = document.getElementById( 'c_firstname' ).value+ ' ' + document.getElementById( 'c_lastname' ).value;
data.c_isOrganization = 0;
} else {
data.c_name = $('#c_orgname').value;
data.c_name = document.getElementById( 'c_orgname' ).value
data.c_isOrganization = 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment