1) Tabs Availability and Prices are clearly visible on each node type, regardless of setting:1 from the variable table. I checked the variable table and I can see my node type stored there as rooms_node_mynodetype with a value 1.
2) Also, from an appropriate /node/X/edit page, you can see Availability (/node/X/availability) and the link works fine - it takes you to an appropriate /admin/rooms/units/unit/X/availability page. But when you go back and click on Prices (/node/X/prices), it give you a WSOD!
Reg. issue #2, I found the following errors in the logs:
Notice: Trying to get property 'title' of non-object in node_page_view() (line 2755 of /srv/http/mysite/modules/node/node.module).
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7947 of /srv/http/mysite/includes/common.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | tabs-shown-on-all-node-types-3073394-3.patch | 2.13 KB | jazzitup |
Comments
Comment #2
jazzitup commentedIt turned out it was easy to spot, check
rooms_node.module, line 41:Line 257:
Comment #3
jazzitup commentedComment #5
ziomizar commentedHi jazzitup,
Wow, i thought nobody was using rooms_node anymore!
Consider if you are using it in production, that this module has been marked obsolete and unsupported.
I don't have a quick way to test your patch. I can just trust your work, looking at the patch it make sense.
Thank you for working on this.