Mailinglist Archive: obs-commits (345 mails)

< Previous Next >
[obs-commits] [PATCH] [webui] Allow to provide an individual revision to the submit request dialog.
From: Sascha Peilicke <saschpe@xxxxxxx>

It doesn't always have to be the lastest revision...
---
src/webui/app/controllers/package_controller.rb | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/webui/app/controllers/package_controller.rb
b/src/webui/app/controllers/package_controller.rb
index b4fd34e..f2b9e1f 100644
--- a/src/webui/app/controllers/package_controller.rb
+++ b/src/webui/app/controllers/package_controller.rb
@@ -175,7 +175,11 @@ class PackageController < ApplicationController
end

def submit_request_dialog
- @revision = Package.current_rev(@project, @package)
+ if params[:revision]
+ @revision = params[:revision]
+ else
+ @revision = Package.current_rev(@project, @package)
+ end
end
def submit_request
if params[:targetproject].nil? or params[:targetproject].empty?
--
1.7.7

--
To unsubscribe, e-mail: obs-commits+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: obs-commits+owner@xxxxxxxxxxxx

< Previous Next >