Skip to content

Commit 6b42a22

Browse files
author
Praesidiarius
committed
tbl fix
1 parent 315a5a7 commit 6b42a22

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "oneplace/oneplace-contact-address",
33
"description": "onePlace Contact Address Plugin. Multiple Addresses for Contacts",
44
"type": "oneplace-plugin",
5-
"version": "1.0.4.1",
5+
"version": "1.0.5",
66
"license": "BSD-3-Clause",
77
"keywords": [
88
"laminas",

src/Model/AddressTable.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ public function __construct(TableGateway $tableGateway) {
4343
* Get Address Entity
4444
*
4545
* @param int $id
46+
* @param string $sKey
4647
* @return mixed
4748
* @since 1.0.0
4849
*/
49-
public function getSingle($id) {
50+
public function getSingle($id,$sKey = 'Address_ID') {
5051
# Use core function
51-
return $this->getSingleEntity($id,'Address_ID');
52+
return $this->getSingleEntity($id,$sKey);
5253
}
5354

5455
/**
@@ -60,7 +61,7 @@ public function getSingle($id) {
6061
*/
6162
public function saveSingle(Address $oAddress) {
6263
$aDefaultData = [
63-
'label' => $oAddress->label,
64+
'street' => $oAddress->street,
6465
];
6566

6667
return $this->saveSingleEntity($oAddress,'Address_ID',$aDefaultData);

src/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Module {
3232
*
3333
* @since 1.0.0
3434
*/
35-
const VERSION = '1.0.4.1';
35+
const VERSION = '1.0.5';
3636

3737
/**
3838
* Load module config file

0 commit comments

Comments
 (0)