when i save custom made entity i get the message.

Notice: Undefined index: nid in properties_template_field_attach_form() (regel 219 van /var/www/willem.lan/www/public_html/sites/all/modules/contrib/properties/properties_template/properties_template.module)

I dove into the code and could't find any purpose for the declaration of the $nodeId variable and commented it out..

Patch follows in a sec..

CommentFileSizeAuthor
#1 nodeid_removed-1481804-1.patch830 bytesAnonymous (not verified)

Comments

Anonymous’s picture

StatusFileSize
new830 bytes

this is the patch

berdir’s picture

Status: Active » Needs review

Yeah, that looks like a left-over. Remember to set patches to needs review.

Anonymous’s picture

i know i was testing it. to be sure..

It works on my end.

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

forgot to set the status

berdir’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/properties_template/properties_template.moduleundefined
@@ -216,7 +216,7 @@ function properties_template_field_attach_form($entity_type, $entity, &$form, &$
 
-        $nodeId = $form['nid']['#value'];
+        //$nodeId = $form['nid']['#value'];
         // should create such a query object ?enity_type=node&entity_id=78

No need to comment, remove that thing :)

berdir’s picture

Status: Needs work » Closed (duplicate)