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.
Running the CCK beta tests, I get this notice several times:
Unexpected PHP error [Undefined index: created] severity [E_NOTICE] in [/sites/all/modules/simpletest/drupal_test_case.php line 57]
This code there looks wrong, since it's looking for a key in $defaults that is never created. I think the attached patch is a reasonable fix.
Comment | File | Size | Author |
---|---|---|---|
#2 | exception-line57-270053-2.patch | 1.95 KB | pwolanin |
exception-line57.patch | 840 bytes | pwolanin | |
Comments
Comment #1
cwgordon7 CreditAttribution: cwgordon7 commentedThis looks like it alters the original code's intent: we're supposed to use $defaults['created'], if it exists, rather than $settings, which will be merged later, right?
Comment #2
pwolanin CreditAttribution: pwolanin commentedSince $defaults['created'] can never be set, I don't think that is correct.
Also looks like the code in the other base class needs to be fixed to match
Comment #3
boombatower CreditAttribution: boombatower commentedCommitted.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.