Bugs in epublish_nodeapi and epublish_form_alter functions

Sheldon Rampton - July 19, 2007 - 05:28
Project:E-Publish
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I've noticed a couple of bugs in the 5.x module. One is in the "view" case of the epublish_nodeapi function. In page views, the module is supposed to call theme_epublish_navigation, which changes the breadcrumbing and adds some navigation links at the bottom of the page (similar to the navigation links that appear at the bottom of book pages). However, the test being used to determine whether an epublish-related node is being displayed as a page view currently says "if (!$a3)" (which means, "is not a teaser"), rather than "if ($a4)" which is the correct way to test for page view. The result produces some inappropriate changes in breadcrumbing when epublish-related nodes are listed in Drupal search results.

The other bug, in the epublish_form_alter function, makes it impossible to turn the "abstract" feature on or off for individual node types.

I'm attaching a patch that should fix both issues.

AttachmentSize
patch_153.txt2.18 KB

#1

Sheldon Rampton - July 20, 2007 - 21:17

Here's a revised patch. There was a typo in the original.

AttachmentSize
patch_154.txt2.14 KB

#2

rconstantine - October 16, 2007 - 23:46
Status:active» patch (reviewed & tested by the community)

#3

JHeffner - February 7, 2008 - 02:54

I know this patch has been ready to be committed for awhile but I have been happily running it. I added an additional access level to your patched version to control who can write an abstract. I found this useful for some internal intranet sites where the content in the site is re-used and/or highlighted in a monthly newsletter. I attached the additional patch on top of your submission below.

AttachmentSize
add.patch994 bytes

#4

gloscon - June 9, 2008 - 13:25
Status:patch (reviewed & tested by the community)» fixed

http://drupal.org/node/268312

#5

Anonymous (not verified) - June 23, 2008 - 13:32
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.