From 32ff6c5db2ff8f776d30727e4dcf1a456d55c94f Mon Sep 17 00:00:00 2001 From: Lars Saalbach Date: Thu, 9 Jan 2025 21:55:27 +0100 Subject: [PATCH] #876 - Changing user import bean, to get + again --- .../bean-popover-freeze/bean-popover-freeze.component.ts | 3 +++ src/services/intentHandler/intent-handler.service.ts | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/app/beans/bean-popover-freeze/bean-popover-freeze.component.ts b/src/app/beans/bean-popover-freeze/bean-popover-freeze.component.ts index 02d99cea..08e1c090 100644 --- a/src/app/beans/bean-popover-freeze/bean-popover-freeze.component.ts +++ b/src/app/beans/bean-popover-freeze/bean-popover-freeze.component.ts @@ -258,6 +258,9 @@ export class BeanPopoverFreezeComponent implements OnInit { clonedBean.frozenGroupId = _groupBeanId; clonedBean.frozenStorageType = _freezingType; clonedBean.frozenNote = this.frozenNote; + clonedBean.internal_share_code = ''; + clonedBean.shared = false; + clonedBean.qr_code = ''; if (this.bean.cost !== 0) { try { diff --git a/src/services/intentHandler/intent-handler.service.ts b/src/services/intentHandler/intent-handler.service.ts index 12db518d..387472ce 100644 --- a/src/services/intentHandler/intent-handler.service.ts +++ b/src/services/intentHandler/intent-handler.service.ts @@ -90,6 +90,10 @@ export class IntentHandlerService { } catch (ex) {} this.uiLog.log('Found shared bean ' + userBeanJSON); if (userBeanJSON) { + /* + * Android import is replacing the "+" with spaces when using the params, therefore we need to revert it. + */ + userBeanJSON = userBeanJSON.replace(/ /g, '+'); await this.addBeanFromUser(userBeanJSON); } } else if ( @@ -105,6 +109,10 @@ export class IntentHandlerService { userBeanJSON += String(urlParams.get(param)); } if (userBeanJSON) { + /* + * Android import is replacing the "+" with spaces when using the params, therefore we need to revert it. + */ + userBeanJSON = userBeanJSON.replace(/ /g, '+'); await this.addBeanFromUser(userBeanJSON); } } else if (