Commit 1bc3d0fb authored by Leo Iannacone's avatar Leo Iannacone

check if package exists in current view.packages

parent 3e13bb22
...@@ -353,6 +353,7 @@ function Page_Distrubion(socket) ...@@ -353,6 +353,7 @@ function Page_Distrubion(socket)
) )
{ // new package view { // new package view
// set status from packages // set status from packages
if (view.packages[view.package.orig_name])
view.package.status = view.packages[view.package.orig_name].status view.package.status = view.packages[view.package.orig_name].status
files.get() files.get()
file.clean() file.clean()
...@@ -418,6 +419,7 @@ function Page_Distrubion(socket) ...@@ -418,6 +419,7 @@ function Page_Distrubion(socket)
// reset current view // reset current view
view.distribution = Utils.clone(new_view.distribution) view.distribution = Utils.clone(new_view.distribution)
view.package = Utils.clone(new_view.package) view.package = Utils.clone(new_view.package)
if (view.packages[view.package.orig_name])
view.package.status = view.packages[view.package.orig_name].status view.package.status = view.packages[view.package.orig_name].status
view.file = Utils.clone(new_view.file) view.file = Utils.clone(new_view.file)
update.page(old_view) update.page(old_view)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment