Metron-Project / metron

Django website for a comic book database
https://metron.cloud/
GNU General Public License v3.0
90 stars 7 forks source link

When creating a TPB the Collection Title field is disabled #123

Closed bpepple closed 2 years ago

bpepple commented 2 years ago

Describe the bug When creating a Trade Paperback the Collection Title field is disabled. Currently the field in only enabled when updating an already existing Trade Paperback.

To Reproduce Steps to reproduce the behavior:

  1. Click the New button for an Issue
  2. Select a TPB series for the Series field.

Expected behavior When a TPB series is selected the Collection Title field should be enabled.

Possible Solutions This most likely requires some Javascript to change the state of the Collection Title based on the Series selected by the user.

bpepple commented 2 years ago

Instead of disabling the field, just added form validation to prevent Collection Title field from being added for any series type other than a Trade Paperback.

Fixed in: 0d6268f92709ef886e49ffe2a134a0b6af3672f7