Skip to content

Commit

Permalink
#876 - Changing user import bean, to get + again
Browse files Browse the repository at this point in the history
  • Loading branch information
graphefruit committed Jan 9, 2025
1 parent 765bfaa commit 32ff6c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 8 additions & 0 deletions src/services/intentHandler/intent-handler.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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 (
Expand Down

0 comments on commit 32ff6c5

Please sign in to comment.