Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
CCK fields are tested in content.rules.inc using the function array_diff_assoc. This function cannot deal with objects. So it tries to convert the duration into a string, which fails due to missing __toString() method.
As a workaround, the following patch implements the missing function.
In general. CCK and Duration should agree which is a useful design. I expect the current implementation to have some other traps breaking functionality.
As a side effect it fixes a warning generated, when strict error checking is used.
Comment | File | Size | Author |
---|---|---|---|
duration.diff | 1.34 KB | keinstein |