ISU-WebDevClub / club-website-mark-2

http://webdev.stuorg.iastate.edu
1 stars 0 forks source link

admin edits #10

Closed csteamengine closed 8 years ago

csteamengine commented 8 years ago

When you edit something, it needs to check if the value has changed, otherwise it will overwrite certain data. Like when you edit the title, it overwrites the image name, even though a new image wasn't uploaded.

csteamengine commented 8 years ago

Done, if they don't upload a new image, it doesn't try to change it. Otherwise it writes the data from the other form inputs to the corresponding columns. Since it pre-loads the forms with the current data, this results in the data remaining the same unless the user changes it.