Skip to content

Commit 6ff7c40

Browse files
author
Chris Gårdenberg
committed
# 2.0.33
- Fixing error in profile-page.
1 parent bca94e0 commit 6ff7c40

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

content/template/myPagesTemplate/profile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$patch_customer->BillingInfo->Zip = sanitize_text_field( $_POST['customerInvoiceZip'] );
2222
$patch_customer->BillingInfo->City = sanitize_text_field( $_POST['customerInvoiceCity'] );
2323
$patch_customer->BillingInfo->OrganisationNumber = sanitize_text_field( $_POST['customerInvoiceOrgNr'] );
24-
$patch_customer->BillingInfo->SellerReference = sanitize_text_field( $_POST['customerReference'] );
24+
$patch_customer->BillingInfo->BuyerReference = sanitize_text_field( $_POST['customerReference'] );
2525
$patch_customer->BillingInfo->Email = sanitize_email( $_POST['customerInvoiceEmail'] );
2626

2727
$patch_contact = new stdClass();
@@ -130,7 +130,7 @@
130130
<label>
131131
<div class="inputLabel"><?php esc_html_e( 'Invoice reference', 'eduadmin-booking' ); ?></div>
132132
<div class="inputHolder">
133-
<input type="text" name="customerReference" placeholder="<?php echo esc_attr__( 'Invoice reference', 'eduadmin-booking' ); ?>" value="<?php echo esc_attr( $invoice_customer->SellerReference ); ?>" />
133+
<input type="text" name="customerReference" placeholder="<?php echo esc_attr__( 'Invoice reference', 'eduadmin-booking' ); ?>" value="<?php echo esc_attr( $invoice_customer->CustomerReference ); ?>" />
134134
</div>
135135
</label>
136136
</div>

eduadmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin URI: https://www.eduadmin.se
1010
* Description: EduAdmin plugin to allow visitors to book courses at your website
1111
* Tags: booking, participants, courses, events, eduadmin, lega online
12-
* Version: 2.0.32
12+
* Version: 2.0.33
1313
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
1515
* Requires at least: 4.7

readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: mnchga
33
Tags: booking, participants, courses, events, eduadmin, lega online
44
Requires at least: 4.7
55
Tested up to: 5.0
6-
Stable tag: 2.0.32
6+
Stable tag: 2.0.33
77
Requires PHP: 5.2
88
License: GPL3
99
License-URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -37,6 +37,9 @@ If you notice that your API key doesn't work any more, you have to contact us.
3737

3838
== Changelog ==
3939

40+
### 2.0.33
41+
- chg: `BuyerReference` should be saved in `BuyerReference`, not `SellerReference`
42+
4043
### 2.0.32
4144
- add: Allowing HTML (`<p></p>` and `<br />`) in list view
4245

@@ -48,4 +51,4 @@ If you notice that your API key doesn't work any more, you have to contact us.
4851
- fix: And actually checking the required-attribute in the validation would help.
4952

5053
### 2.0.29
51-
- fix: [#163](https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/163) Civic registration number only required if the contact person is a participant
54+
- fix: [#163](https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/163) Civic registration number only required if the contact person is a participant

0 commit comments

Comments
 (0)