Apparently just a ugly warning with no consequence. Whenever a survey node is deleted in Drupal this shows up abundantly:

Notice: Undefined property: stdClass::$nid em ls_answ_clean_delete_answer() (line 1653 of /srv/www/domain.com/public_html/sites/all/modules/limesurvey_sync/ls_answ/ls_answ.inc).

Comments

thedut’s picture

Thank you,
In order to fix it, replace the line 1653 : ('node_nid' instead of 'nid').

    $not_shared = ($to_delete == 'vid' || ($to_delete == 'nid' && $list['n_nodes'] <= 1 && isset($list['type'][$to_test->type][$to_test->nid])) || ($to_delete == 'type' && $list['n_types'] <= 1 && isset($list['type'][$to_test->type])));

by :

    $not_shared = ($to_delete == 'vid' || ($to_delete == 'nid' && $list['n_nodes'] <= 1 && isset($list['type'][$to_test->type][$to_test->node_nid])) || ($to_delete == 'type' && $list['n_types'] <= 1 && isset($list['type'][$to_test->type])));

I will include this fix into the next release.

hvalentim’s picture

Thanks. Seems to be fixed.

thedut’s picture

Assigned: Unassigned » thedut
Status: Active » Patch (to be ported)

Thanks, I will include it into the new LimeSurvey Sync release.

thedut’s picture

Status: Patch (to be ported) » Closed (fixed)

Fixed into the LimeSurvey Sync 7.x-1.6 release and 6.x-1.6 release.