It didn't save endpoint field label.
Errors:
Notice: Trying to get property of non-object in relation_endpoint_field_validate() (line 28 of sites/all/modules/contrib/relation/relation_endpoint.module).
Notice: Trying to get property of non-object in relation_endpoint_field_validate() (line 34 of sites/all/modules/contrib/relation/relation_endpoint.module).
Notice: Undefined variable: delta in relation_endpoint_field_validate() (line 32 of sites/all/modules/contrib/relation/relation_endpoint.module).
Notice: Trying to get property of non-object in relation_endpoint_field_validate() (line 39 of sites/all/modules/contrib/relation/relation_endpoint.module).
Notice: Trying to get property of non-object in relation_endpoint_field_validate() (line 49 of sites/all/modules/contrib/relation/relation_endpoint.module).
Notice: Trying to get property of non-object in relation_endpoint_field_validate() (line 55 of sites/all/modules/contrib/relation/relation_endpoint.module).
relation_nonexistent_type
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 1504046-12.patch | 1.5 KB | mikran |
| #11 | issue-1504046-11.patch | 1.7 KB | mr.york |
| #9 | 6052546_9.patch | 1.22 KB | chx |
| #7 | tests-1504046-7.patch | 1.23 KB | mikran |
| #3 | Issue-1504046.jpg | 175.88 KB | mr.york |
Comments
Comment #1
mr.york commentedThis patch is simple bugfix.
Comment #2
mikran commentedWhat exactly were you attempting to do when the error occured?
Comment #3
mr.york commentedPath is admin/structure/relation/manage/[relation_type]/fields/endpoints
Comment #4
mikran commentedWell, since it's not possible to provide any default values for relation endpoints the patch is ok.
Comment #5
chx commentedNo. What you want is a no ui in the field definition. Why the field is on the UI? I thought we added no ui long ago.
Comment #6
chx commentedOk scratch #5 but still.
Comment #7
mikran commentedMy first shot at writing Drupal tests
Comment #8
chx commentedThat's one interesting patch, 'cos I do not have a test called testRelationImport.
Comment #9
chx commentedHere's a reroll. I am not going to commit this yet because the test needs to a) use a random label b) check that label actually got saved not just messaged about it. Thanks for the patch so far!
Comment #10
mikran commentedtestRelationImport was missing with the relation_ui files.
Comment #11
mr.york commentedI moved test in relation_ui.test file and add randomName label check.
Comment #12
mikran commentedThanks mr.york, I modified the test a bit. I'll commit if this passes testbot
Comment #13
mikran commentedand committed.