$format not handled correctly in node preview

starbow - October 30, 2008 - 23:06
Project:Live
Version:6.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

Currently the nodes Input format is ignored. This issue is in live.node.inc. You pull the $format out of the post, but then in your node_teaser call you use $node->format, which has not been set. Setting $node->format = $format fixes this, but I am not sure why you don't just pull from the post into $node->format.

Also, when you call check_markup, you are using $format before it is set.

#1

swentel - November 10, 2008 - 11:50

I can confirm this, attached is a patch which fixes this.

AttachmentSize
328355.patch 1.4 KB

#2

Gurpartap Singh - November 10, 2008 - 13:13
Status:needs review» fixed

Fixed in CVS! Thanks!

#3

System Message - November 24, 2008 - 13:22
Status:fixed» closed

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

#4

Flying Drupalist - December 6, 2008 - 02:37

Please release?

 
 

Drupal is a registered trademark of Dries Buytaert.