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
Comment | File | Size | Author |
---|---|---|---|
#2 | 501968-publishcontent.module.patch | 2.14 KB | AaronBauman |
Comments
Comment #1
AaronBauman+1
Comment #2
AaronBaumanThere are more instances of leading spaces than documented above.
here's a patch.
Comment #3
kitcorsa CreditAttribution: kitcorsa commentedi 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.
Comment #4
kitcorsa CreditAttribution: kitcorsa commentedi went through the patch file and looked at the changed and changed the origial modual file and all worked fine.
Comment #5
AaronBaumanThis module seems to be abandoned.
Pity because it actually works well other than this issue.
Comment #6
AaronBaumancommitted to dev
http://drupal.org/cvs?commit=373934