  def wf_issue
    Log.add_info(request, params.inspect)

    return unless request.post?

    begin
      @item = Item.find(params[:id])
      @workflow = @item.workflow
    rescue => evar
      Log.add_error(request, evar)
    end
 
    attrs = ActionController::Parameters.new({status: Workflow::STATUS_ACTIVE, issued_at: Time.now})
    @workflow.update_attributes(attrs.permit(Workflow::PERMIT_BASE))

    @orders = @workflow.get_orders

    render(:partial => 'ajax_workflow', :layout => false)
  end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.