lib/jamf/api/classic/api_objects/patch_title/version.rb in ruby-jss-4.1.0 vs lib/jamf/api/classic/api_objects/patch_title/version.rb in ruby-jss-4.1.1b1
- old
+ new
@@ -24,11 +24,10 @@
###
###
module Jamf
- #
class PatchTitle < Jamf::APIObject
# A Patch Software Title Version in the JSS.
#
# This class corresponds to a "version" returned from the
@@ -146,10 +145,10 @@
raise Jamf::NoSuchItemError, "No Jamf::Package matches '#{new_pkg}'" unless pkgid
return if @package_id == pkgid
@package_id = pkgid
- @package_name = pkgid == :none ? nil : Jamf::Package.map_all_ids_to(:name)[pkgid]
+ @package_name = pkgid == :none ? nil : Jamf::Package.map_all_ids_to(:name, cnx: @title.cnx)[pkgid]
@title.changed_pkg_for_version version
end
# Remove the various cached data
# from the instance_variables used to create