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

Problem: AtoM no longer updates the clipboard results across browser tabs, resulting in overwritten clipboard items #1749

Closed
fiver-watson opened this issue Feb 7, 2024 · 0 comments · Fixed by #1758
Assignees
Labels
Type: bug A flaw in the code that causes the software to produce an incorrect or unexpected result.
Milestone

Comments

@fiver-watson
Copy link
Contributor

fiver-watson commented Feb 7, 2024

Current Behavior

From a user forum report:

I found a bug in AtoM 2.7.3 regarding adding descriptions to the clipboard, which was not present in earlier versions.

Test scenario:

  • Empty clipboard
  • Open two tabs with different descriptions in the browser
  • In the first tab, click on Clipboard > Add → a 1 appears on the paperclip icon

AtoM 2.6.4:

  • In the second tab, click on Clipboard > Add → a 2 appears on the paperclip icon
  • Click on Clipboard at the top of the menu > Go to clipboard → 2 entries appear

--> correct behavior

AtoM 2.7.3

  • In the second tab, click on Clipboard > Add → a 1 appears on the paperclip icon.
  • Click on Clipboard at the top of the menu > Go to clipboard → only 1 entry appears, namely from the second tab. The entry from the first tab has been deleted or overwritten.

--> Wrong behavior

This is quite annoying because it limits the work for the research very much if you want to work with different tabs.

Expected Behavior

Per previous 2.6.x releases, AtoM should check the clipboard count before applying the current update, allowing for updates across multiple tabs without overwriting or losing records.

Possible Solution

No response

Context and Notes

Reported in the user forum, 2024-02-05:

DG has recreated this behavior in the BS5 templates using the public demo site, 2024-02-07 (demo site running 2.7.3 - 192)

Version used

2.7.3

Operating System and version

Ubuntu 20.04

Default installation culture

No response

PHP version

PHP 7.4

Contact details

No response

@fiver-watson fiver-watson added the Type: bug A flaw in the code that causes the software to produce an incorrect or unexpected result. label Feb 7, 2024
anvit added a commit that referenced this issue Feb 12, 2024
Increase the default limit for items per page in treeview to 5000
anvit added a commit that referenced this issue Feb 13, 2024
Increase the default limit for items per page in treeview to 8000
@anvit anvit self-assigned this Feb 13, 2024
@anvit anvit added this to the 2.8.1 milestone Feb 13, 2024
anvit added a commit that referenced this issue Feb 13, 2024
Clipboard behaviour changed to always load from browser storage before
updating content when toggle button is pressed to avoid overwriting data
from another tab.
@anvit anvit linked a pull request Feb 13, 2024 that will close this issue
anvit added a commit that referenced this issue Feb 13, 2024
Clipboard behaviour changed to always load from browser storage before
updating content when toggle button is pressed to avoid overwriting data
from another tab.
anvit added a commit that referenced this issue Feb 16, 2024
Clipboard behaviour changed to always load from browser storage before
updating content when toggle button is pressed to avoid overwriting data
from another tab.
melaniekung pushed a commit that referenced this issue Mar 14, 2024
Clipboard behaviour changed to always load from browser storage before
updating content when toggle button is pressed to avoid overwriting data
from another tab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug A flaw in the code that causes the software to produce an incorrect or unexpected result.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants