Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: can't add a new currency (newCurrencyName is undefined) #314

Open
robinmetral opened this issue Nov 10, 2024 · 5 comments
Open

Bug: can't add a new currency (newCurrencyName is undefined) #314

robinmetral opened this issue Nov 10, 2024 · 5 comments

Comments

@robinmetral
Copy link

Adding a new currency fails because newCurrencyName is undefined. I'm provinding a currency name, so it looks like something isn't wired up in the form.

This screenshot shows the currency I'm trying to add (name: CHF, value: 1.06) and the error in the console:

Full stacktrace

TypeError: this.$refs.newCurrencyName is undefined
    onAddCurrency CurrencyManagement.vue:182
    VueJS 4
    click NcButton.mjs:225
    VueJS 3
vue.runtime.esm.js:3065:16

Version details

  • Nextcloud server version: Nextcloud Hub 9 (30.0.2)
  • Cospend version: 2.0.0 (latest)
  • Browser: Firefox 130.0.1
@Toastyyy3
Copy link

Having the same issue on NC 30.0.2 with Safari and the latest Cospend version (2.0.0)

@oustedaisse
Copy link

oustedaisse commented Dec 1, 2024

Hi, exactly same issue here (NC 30.0.2 / Firefox 133).

@chenasraf
Copy link

chenasraf commented Dec 2, 2024

Same issue

Had to manually insert into DB to have more currencies:

insert into oc_cospend_currencies (projectid, name, exchange_rate) values ('home', '$ USD', 4.0);

@chenasraf
Copy link

I tried forking to fix it, seems to already be fixed on master. Does anyone have any idea when it'll be released to the App Store?

@julien-nc
Copy link
Owner

@chenasraf Thanks for attempting to implement a fix.

@ALL I didn't have much time for Cospend lately. I'll make a release soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants