Hi,

Just wanted to let you know that if I delete a token from admin/structure/limesurvey/token/conversational-capacity-160910-f

I get this error message:

Notice: Undefined property: LimesurveySyncEntityToken::$type in entityform_block_entity_delete() (line 197 of /srv/bindings/e9b817c908bc43158d5d14ae83065dbb/code/sites/all/modules/entityform_block/entityform_block.module).

I'm not sure that it is a problem other than seeing the message, but wanted to let you know.

CommentFileSizeAuthor
#6 notice_error_when-2801483-6.patch585 bytesharings_rob

Comments

jsibley created an issue. See original summary.

jsibley’s picture

Any thoughts about this? I am getting these messages when deleting token entities:

Notice: Undefined property: LimesurveySyncEntityToken::$type in entityform_block_entity_delete() (line 197 of /code/sites/all/modules/entityform_block/entityform_block.module).

thedut’s picture

Project: LimeSurvey Sync » Entityform block
Version: 7.x-3.x-dev » 7.x-1.x-dev

This is a Entityform block module issue.
I move this issue to the entityform_bloc project.
I guess this bug has no consequences (display notice error) and could be fixed switching line 197 and 198 :

function entityform_block_entity_delete($entity, $entity_type) {
  if ($entity_type == "entityform_type") {
    $type = $entity->type;
thedut’s picture

Title: Error when deleting token » Notice Error when deleting custom entity
ConradFlashback’s picture

+1
error when I delete an entity from a rules.

harings_rob’s picture

StatusFileSize
new585 bytes

This should indeed be swapped, this is just a bad assumption (users have no type either.)

Attached is the patch.