WhatCD/Gazelle

Bitrate not reselected in upload form on validation error

kolen opened this issue · 0 comments

  • Go to upload page
  • Select some bitrate, don't fill other fields
  • Press "upload"
  • Form will display validation error ("Please enter at least one main artist")
  • Bitrate field will be reset to "---"

There's code for this, but seems it does not work:

            if (($SimpleBitrate && preg_match('/^'.$SimpleBitrate.'.*/', $Bitrate)) || ($OtherBitrate && $Bitrate == 'Other')) {
                echo ' selected="selected"';
            }

Rev: 20283