From 25fb47b11a819cd96d3d170de4c0e2539da554b5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 27 Aug 2014 13:53:03 +0200 Subject: [PATCH] =?utf8?q?Pflichtenheftversionen:=20=C2=BBPDF=20Downloaden?= =?utf8?q?=C2=AB=20f=C3=BCr=20Arbeitskopie-Eintrag=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/requirement_spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1