File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments