Skip to content

Commit db500f6

Browse files
author
Cameron Hall
authored
Merge pull request #47 from SynergyWholesale/develop
v2.1.11
2 parents 0d4f99e + b6eac54 commit db500f6

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Synergy Wholesale WHMCS Domains Module
1515
### Removed
1616
-
1717

18+
## 2.1.11 [Updated 29/10/2020]
19+
### Fixed
20+
- Fixed admin and billing contacts not being updatable. Fixes [#45](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/45)
21+
1822
## 2.1.10 [Updated 09/10/2020]
1923
### Fixed
2024
- Fixed transfer domain conditions incorrectly testing against the SLD and not the TLD.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](LICENSE)
55
[![Contributors welcome](https://img.shields.io/badge/Contributors-welcome-brightgreen.svg)](https://github.com/synergywholesale/whmcs-domains-module/blob/master/CONTRIBUTING.md)
66

7-
This repository contains the source code for the [Synergy Wholsale](https://synergywholesale.com/) WHMCS domains module.
7+
This repository contains the source code for the [Synergy Wholesale](https://synergywholesale.com/) WHMCS domains module.
88

99
## Features
1010
---
@@ -47,4 +47,4 @@ This module utilises the **PHP SOAP** module. In order to connect to use our API
4747
If you are interested in contributing, and need some help getting started; please see our [contribution guide](CONTRIBUTING.md).
4848

4949
# License
50-
This project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for further information.
50+
This project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for further information.

modules/registrars/synergywholesaledomains/synergywholesaledomains.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,6 @@ function synergywholesaledomains_GetContactDetails(array $params)
11181118
$idProtectStatus = synergywholesaledomains_apiRequest('domainInfo', $params, [], false);
11191119
$command = ('Enabled' === $idProtectStatus['idProtect'] ? 'listProtectedContacts' : 'listContacts');
11201120
$contacts = synergywholesaledomains_apiRequest($command, $params, [], false);
1121-
11221121
$response = [];
11231122

11241123
$map = [
@@ -1135,7 +1134,14 @@ function synergywholesaledomains_GetContactDetails(array $params)
11351134
'email' => 'Email',
11361135
];
11371136

1138-
foreach (['registrant', 'tech', 'billing', 'admin'] as $contact) {
1137+
$contactTypes = ['registrant'];
1138+
foreach (['admin', 'billing', 'tech'] as $otherTypes) {
1139+
if (isset($contacts[$otherTypes])) {
1140+
$contactTypes[] = $otherTypes;
1141+
}
1142+
}
1143+
1144+
foreach ($contactTypes as $contact) {
11391145
$whmcs_contact = ucfirst($contact);
11401146
$response[$whmcs_contact] = [];
11411147
foreach ($map as $from => $to) {

0 commit comments

Comments
 (0)