From: Moritz Bunkus Date: Wed, 27 Aug 2014 11:53:03 +0000 (+0200) Subject: Pflichtenheftversionen: »PDF Downloaden« für Arbeitskopie-Eintrag gefixt X-Git-Tag: release-3.2.0beta~326 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=25fb47b11a819cd96d3d170de4c0e2539da554b5;p=kivitendo-erp.git Pflichtenheftversionen: »PDF Downloaden« für Arbeitskopie-Eintrag gefixt --- diff --git a/js/requirement_spec.js b/js/requirement_spec.js index a31a6cbe0..b4e9cd950 100644 --- a/js/requirement_spec.js +++ b/js/requirement_spec.js @@ -629,7 +629,7 @@ ns.disable_commands = function(key, opt) { ns.find_versioned_copy_id = function(clicked_elt) { var id = $(clicked_elt).find("[name=versioned_copy_id]"); - return id ? id.val() : undefined; + return id.size() ? id.val() : undefined; }; ns.disable_versioned_copy_item_commands = function(key, opt) { @@ -649,7 +649,7 @@ ns.create_version = function() { ns.create_pdf_for_versioned_copy_ajax_call = function(key, opt) { var data = { action: "RequirementSpec/create_pdf", - id: ns.find_versioned_copy_id(opt.$trigger) + id: ns.find_versioned_copy_id(opt.$trigger) || $('#requirement_spec_id').val() }; $.download("controller.pl", data);