Skip to content

Add custom sound form submits even without adding a file #21664

@PriyaBihani

Description

@PriyaBihani

Description:

When we try to add a custom sound in admin panel, the submit button gets enabled as soon as we enter a name. Making it possible for user to submit without uploading a file which results in an error "can not read property name of undefined".

Steps to reproduce:

  1. Go to the admin panel
  2. Go to custom sounds
  3. Try to add a custom sound without name.

Expected behaviour:

Submit button should remain disabled until both name and file is added.

Actual behavior:

Button gets enabled as soon as a name is added thus making it possible to submit form.
Screenshot 2021-04-20 at 3 55 06 PM

Server Setup Information:

  • Version of Rocket.Chat Server:
  • Operating System:
  • Deployment Method:
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:

Client Setup Information

  • Desktop App or Browser Version:
  • Operating System:

Additional context

Relevant logs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions