Hi,

After installing entity-soft-delete module, i done required configuration. If i go to node/add/article then its throw following warning. warning error. This issue is not happen in view,edit,delete for a node.

From our notices: Following entity_soft_delete_add_soft_delete_actions calling in 'entity_soft_delete_form_alter'. In line no 1330(if (entity_access('delete', $entity_type, $entity)) ), this 'if condition' is executing for 'node/add/content-type'.

Please find another notice error also(image is attached).notices

Regards,
tssarun.

Comments

Molodoy’s picture

Any updates on this issue?

sinasalek’s picture

Status: Active » Fixed

Yes actually it has been fixed, you can try the latest dev snapshot when it became available

  • sinasalek committed fe840e0 on master
    * Notice: Undefined property: stdClass::$nid [#2298801]
    * Fatal error...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

guypaddock’s picture

Status: Closed (fixed) » Active
StatusFileSize
new97.13 KB

Re-opening. Still seeing the same issue with the latest code. Stack screenshot attached.

guypaddock’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.0-alpha2
Status: Active » Needs review
StatusFileSize
new698 bytes

Attached is a patch to attempt to fix this.

Any idea why we needed the check against the form ID to verify that the form was an add form? The fact that it's a node and it has no node ID should be enough.