myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3770] trunk/app/models/pack.rb: Fixed issue with


From: noreply
Subject: [myexperiment-hackers] [3770] trunk/app/models/pack.rb: Fixed issue with retrieving component profile for a family
Date: Mon, 4 Nov 2013 15:24:49 +0000 (UTC)

Revision
3770
Author
fbacall
Date
2013-11-04 15:24:48 +0000 (Mon, 04 Nov 2013)

Log Message

Fixed issue with retrieving component profile for a family

Modified Paths

Diff

Modified: trunk/app/models/pack.rb (3769 => 3770)


--- trunk/app/models/pack.rb	2013-11-04 15:20:51 UTC (rev 3769)
+++ trunk/app/models/pack.rb	2013-11-04 15:24:48 UTC (rev 3770)
@@ -718,7 +718,11 @@
     entry = contributable_entries.detect { |e| e.contributable_type == 'Blob' && e.contributable && e.contributable.component_profile? }
     if entry
       profile = ""
-      profile.find_version(entry.contributable_version) if entry.contributable_version
+      if entry.contributable_version
+        profile.find_version(entry.contributable_version)
+      else
+        profile
+      end
     else
       nil
     end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]