Project

General

Profile

Actions

Bug #4860

closed

composite content view component add seems cumulative

Added by Justin Sherrill about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

On the "Content Views" > "Add" page of a composite content view, click 'add content views' multiple times seems to keep a running list of all IDs sent and keeps sending those. For example:

1. Create a Repo FOO
2. Create 2 content views (A & B), add FOO to both, and publish version 1 of both
3. Create a new composite content view
4. On the content view > Add page of this composite, select both view A & B, and click "Add Content Views"
5. A request is sent to the server with components [4,5] (These are just examples of 2 ids)
6. You will get an error saying there is a repo conflict. So far so good.
7. Un-select View A (So that only View B is listed) from the list and click "Add Content Views" again
8. An error will occur and the list of components will be [4,5,4].

Everytime you click the "Add Content Views" Button, the selection is added to the list of everything previously selected (include duplicates) and sent again.

The error the 2nd time is "An error occurred updating the Content View: has already been taken" which doesn't really make sense, but the browser should only be sending what is actually selected.

Actions

Also available in: Atom PDF