SangeethKarunaratne / building-sat-

0 stars 0 forks source link

Deleting an entry added to database by an administrator #93

Closed Dilshi830 closed 2 years ago

Dilshi830 commented 2 years ago

Describe the bug

there is an issue when a new material is added as an administrator and it is deleted later. In all the projects it was used, the material entry and calculations remain but however the material name gets changed to some form of gibberish. In this case it was changed from "Adhesive1" to "BMAT977 (unknown)" which I assume means Building Material 977.

Refer to ss. If there is a way to retain the name of the material too just as how the values and entries remain, it would be great. Screenshot (134)

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

SangeethKarunaratne commented 2 years ago

@Dilshi830 this was conveyed at the very first, that this issue will occur if you delete a material that is used throughout, which is why there is an Edit option where you can edit the resource as required.

SangeethKarunaratne commented 2 years ago

@Dilshi830 it is not possible to save the name, the data is obtained from a list that contains the material, when the material is deleted this is the expected outcome

Dilshi830 commented 2 years ago

Understood