I just realized that saving an image-field without any caption nevertheless stores this to the DB.
By now I have almost 200k rows with empty values which take up a 10th of the whole DB (100Mb/1GB).
I don't think this is this useful?

Comments

tsc_a created an issue. See original summary.

tasc’s picture

Issue summary: View changes
bhide.nishad’s picture

Assigned: Unassigned » bhide.nishad
bhide.nishad’s picture

Assigned: bhide.nishad » Unassigned
Status: Active » Needs review
StatusFileSize
new2.34 KB

Inserting the record into DB only when caption field have value.
Please find the attached patch.

bhide.nishad’s picture

@tyler.frankenstein/other maintainers,

Could we please have this patch applied.
Or else I would like to help, so please provide me the maintainer role for the project.

tyler.frankenstein’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Category: Task » Bug report
Status: Needs review » Fixed

Thank you for the follow up. I've applied the patch, then used the inverse of it to just continue in the event of an empty value, so only one line of code was changed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.