if i enable a rule to trigger and send a mail when an upload field is edited
it crashes if the user decides to remove a precedently uploaded file and doesn't upload anything in replace.

The Drupal log says:

array_diff_assoc() [<a href='function.array-diff-assoc'>function.array-diff-assoc</a>]: Argument #1 is not an array in C:\..\mysite\sites\all\modules\cck\includes\content.rules.inc on line 338.

It's really a mistery for me and it seems a bug.
If anyone has an advice please tell... i'm on a deadline that may become a deathline.

thanks
David

Comments

mitchell’s picture

Component: Rules Core » Rules Engine
Category: bug » support
Status: Active » Fixed

I think you need some sort of condition scheme, which won't happen by itself. If you are using the filefield module, then you could put a condition that the 'field has value' of empty with the negate option. You could try using a condition 'field has been updated' with the negation option, or maybe the content_permissions module may suit your needs.

Status: Fixed » Closed (fixed)

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