Closed (fixed)
Project:
Rules
Version:
6.x-1.1
Component:
Rules Engine
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2009 at 17:00 UTC
Updated:
26 Dec 2009 at 15:10 UTC
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
Comment #1
mitchell commentedI 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.