Patch (to be ported)
Project:
Workspace
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2008 at 00:26 UTC
Updated:
4 May 2010 at 08:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
smacphail commentedAlso having the same problem.
I did a quick look in the code and came up with this hack, which seemed to work. (Sorry, don't know how to make patch files yet. :P)
You're looking for the function "workspace_add_form_submit" and the line that looks like:
You'd modify it to look like:
Seems pretty simple...I think?
Comment #2
frank ralf commentedThanks for the hack! Has anyone tested the code yet?
Frank
Comment #3
smacphail commentedI've been using this little hack on a production environment for the past few months, haven't heard of any issues or complaints from my users.
Comment #4
frank ralf commentedThanks for the feedback. Will include the patch in the next commit to HEAD.
Frank
Comment #5
turadg commentedbtw, it's not really a hack. it's exactly what node.module (in core) does:
The check for underscores should not be included. If there are no underscores, the check will take exactly as long as no check. If there are underscores, it will take about twice as long as it scans the string twice.
I hope to see this in a release soon as it's a very simple fix to a problem that is very confusing to users.
Comment #6
Michel Poulain commentedSorry for the duplicate Issue report. I should have checked before. My fault. http://drupal.org/node/616462
This is my patch for a proper Workspace behavior :
The actual node add url with Workspace :
example.com/node/add/node_type[WRONG]With this patch :
example.com/node/add/node-type[GOOD]Comment #7
frank ralf commentedHi Michel,
Thanks for your patch. Have you tried the Dev version? The above mentioned hack should be already incorporated there.
Cheers,
Frank
Comment #8
StudioARE commentedGood to hear this issue have been fixed.
Could you release a "non-dev" version with this issue fixed as well? Just so it would look a bit nicer for anyone else stumbling upon this module. :)
-Are