when assigning the publish/unpublish permissions i received the following error:
An illegal choice has been detected. Please contact the site administrator.

when i looked at the module code i found that sometimes the permissions have spaces in front of them:
$perms[] = ' publish '. check_plain($type->type) .' content';
$perms[] = ' publish own '. check_plain($type->type) .' content';
$perms[] = 'unpublish '. check_plain($type->type) .' content';
$perms[] = 'unpublish own '. check_plain($type->type) .' content';

when i removed the spaces everywhere everything was working again without the error

our webserver is protected by the suhosin layer (http://www.hardened-php.net/suhosin/) so perhaps that module strips the post variables after the submit

CommentFileSizeAuthor
#2 501968-publishcontent.module.patch2.14 KBAaronBauman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AaronBauman’s picture

+1

AaronBauman’s picture

Assigned: Unassigned » AaronBauman
Status: Active » Needs review
FileSize
2.14 KB

There are more instances of leading spaces than documented above.

here's a patch.

kitcorsa’s picture

i get this error when i select and publish option.

An illegal choice has been detected. Please contact the site administrator.

i can select the unpublish options but not the publish options!! when i section any publish option i get the error

uploaded the patch file... dont know if i was just ment to upload it or edit the origial file though but i uploaded the abopve patcvh and still no joy.

kitcorsa’s picture

i went through the patch file and looked at the changed and changed the origial modual file and all worked fine.

AaronBauman’s picture

Priority: Normal » Critical

This module seems to be abandoned.
Pity because it actually works well other than this issue.

AaronBauman’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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