Download & Extend

Warnings if no custom tokens have been defined

Project:Skeleton outlines
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

From #358436: No child nodes are created:

When I try to create a new instance of a book with the skeleton I receive the following warning: "warning: Invalid argument supplied for foreach() in ...\htdocs\drupal68\sites\all\modules\skeleton\skeleton_token.inc on line 210."

The following patch should prevent the warning.

AttachmentSize
358436_no_custom_tokens.patch2.46 KB

Comments

#1

Here is an updated patch which fixes the wrong variable being sent to token_replace() for the node replacements.

AttachmentSize
358436_no_custom_tokens_1.patch 3.04 KB

#2

This is an updated patch which applies against HEAD. I'll be committing it shortly.

AttachmentSize
358436_no_custom_tokens_2.patch 3 KB

#3

Status:needs review» fixed

Committed to HEAD.

#4

Status:fixed» closed (fixed)

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

nobody click here