Description of problem:
If the SWA attempts to create an Item, a 'Select a Workflow' label
will show up. If the SWA creates the Item, the sytem will refuse,
saying that the Workflow parameter is required.
The problem is that there is no workflow select widget, just a label,
making it impossible to fulfill the requirements to submit the form.
Actually, it's not useless -- It's just missing the proper "you don't
belong to any workflows" label when there are none to choose from. It
_may_ be that the proper thing to do here is that for users with the
Item Administration function we want to show all workflows. We've got
to be careful with that, though, because once the item is assigned a
workflow, the SWA won't be able to edit anyway (without stopping the
workflow), since you can't edit an item in a workflow without locking
it, and you can't lock it without being assigned it.
ok, so I think I will, in the case where an admin (or anyone with
apply alternate workflow permissions) has no workflows to choose from,
we'll hide the entire widget, and apply the default workflow insead.
So here's the behavior:
1) if user has apply alternate workflow permission and belongs to one
one more workflows, the user gets the form (with >=1 choice) and it's
2) otherwise apply the default.
I've applied the fix as described above. Notice that even with the
fix, the admin in question will be able to create the item, but he
won't be able to edit it unless the admin gets added to the workflow
_or_ the workflow is stopped, since an item in an active workflow
can't be edited without a locked task.