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

disable create-invoice links after click #3452

Merged
merged 1 commit into from
Aug 1, 2022
Merged

Conversation

kevinpapst
Copy link
Member

@kevinpapst kevinpapst commented Aug 1, 2022

Description

disable create-invoice links after click to prevent double invoices with history.back()

When creating invoices and then using "browser back", you will still see the entire list of all invoices.
This change will disable the link and make it impossible to click it again after "creating and going back".

Before:
Bildschirmfoto 2022-08-01 um 14 16 43

After first invoice:
Bildschirmfoto 2022-08-01 um 14 19 04

After second invoice:
Bildschirmfoto 2022-08-01 um 14 16 00

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I verified that my code applies to the guidelines (composer code-check)
  • I updated the documentation (see here)
  • I agree that this code is used in Kimai and will be published under the MIT license

@kevinpapst kevinpapst added the bug label Aug 1, 2022
@kevinpapst kevinpapst added this to the 1.22 milestone Aug 1, 2022
@kevinpapst kevinpapst merged commit 64c752b into master Aug 1, 2022
@kevinpapst kevinpapst deleted the invoice-link-disable branch August 1, 2022 12:45
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant