I hope I can discribe this issue right, if you need more clairification just ask.

I have the Embedded Media component installed along with Embed Video and Embed Image. I have enabled multiple input fields in the config so that people can link to more than one item.

The issue I am seeing is before I save my content I have 5 input fields for both video and pictures, but if I go in and edit the content there are now 10 boxes for each content type. If I edit the content a third time I get 15 boxes and so on and so forth.

As you can imagine that this is a pain in the butt after editing the content a few times.

I need a way of limiting the fields to only show only 5 at a time, or 10 at the most. The way it currently works is ridiculous.

Thanks!

Comments

Wouter Van den Bosch’s picture

Bump.

I have the same problem. (v 1.5 2007/10/08).

For every save of the node, more empty fields are added on the next edit of the node. I can see in the emfield.module that you have a delta set to zero every time, so it's odd that it adds up on every save.

Just wanted to add my two cents here before I look further into what's going on.

Cheerio,
W

Wouter Van den Bosch’s picture

I just checked my database.

Could it be that you save the empty fields as well ? It looks that way, because I have about a dozen empty fields in my database, apart from the one I filled in for that particular node.

I would say you need to filter on what is actually filled in before saving. That way the delta doesn't go up like that.

Cheers,
W

ofridagan’s picture

Did someone solved this problem?
it sounds like we only need to add a simple condition... but where?

aaron’s picture

Component: User interface » Code
Assigned: Unassigned » aaron
Priority: Normal » Critical

i think this is a duplicate. but i'll leave this open for reference.

aaron’s picture

aaron’s picture

Status: Active » Fixed

i must have fixed this earlier, because it's working fine for me. reopen if it's still broken for you.

thanks,
aaron

Anonymous’s picture

Status: Fixed » Closed (fixed)

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