Unknown device page has pre-filled Discover IP

This commit is contained in:
Oliver Gorwits
2014-03-02 21:03:06 +00:00
parent a64eb49c27
commit 3ff9f3c587
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
* User Reports appear in "My Reports" menu if no category is given * User Reports appear in "My Reports" menu if no category is given
* Permit clipboard copy of device IP from Job Queue rows * Permit clipboard copy of device IP from Job Queue rows
* Failed Job Device IPs link to Discover form with pre-filled Discover IP * Failed Job Device IPs link to Discover form with pre-filled Discover IP
* Unknown device page has pre-filled Discover IP
* Set form focus to Username field on login form * Set form focus to Username field on login form
2.024003 - 2014-02-27 2.024003 - 2014-02-27

View File

@@ -167,7 +167,7 @@ get '/device' => require_login sub {
}); });
if ($dev->count == 0) { if ($dev->count == 0) {
return redirect uri_for('/', {nosuchdevice => 1})->path_query; return redirect uri_for('/', {nosuchdevice => 1, device => $q})->path_query;
} }
# if passed dns, need to check for duplicates # if passed dns, need to check for duplicates