We were getting a 500 error when copying/moving assets between phases, because duplicate assets were present in the data where we were expecting unique values. This branch makes a small change to use the filter() and first() methods instead of a get(), to account for those duplicates
Closes #222
Testing Instructions
Within a project phase, check for pre-assigned assets or assign new assets.
Using the dropdown towards the bottom of the page, copy/move those assets between one or more phases.
Confirm that the page is redirected to the new phase, and that the assets got moved to that phase.
Overview
We were getting a 500 error when copying/moving assets between phases, because duplicate assets were present in the data where we were expecting unique values. This branch makes a small change to use the
filter()
andfirst()
methods instead of aget()
, to account for those duplicatesCloses #222
Testing Instructions