Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latitude and longitude on devices/device fetch #8504

Closed
wants to merge 3 commits into from
Closed

latitude and longitude on devices/device fetch #8504

wants to merge 3 commits into from

Conversation

sorribes22
Copy link
Contributor

DO NOT DELETE THIS TEXT

Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926

@CLAassistant
Copy link

CLAassistant commented Apr 4, 2018

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@laf laf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this, if you can update the html/includes/api_functions.inc.php with the patch I've provided then we can merge this in.

@@ -347,7 +347,7 @@ function list_devices()
$param[] = $_SESSION['user_id'];
}
$devices = array();
$dev_query = "SELECT $select FROM `devices` AS d $join WHERE $sql GROUP BY d.`hostname` ORDER BY $order";
$dev_query = "SELECT dev.*, lat, lng FROM (SELECT $select FROM `devices` AS d $join WHERE $sql GROUP BY d.`hostname` ORDER BY $order) dev LEFT JOIN locations ON locations.location=dev.location";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this line back to how it was and use this patch instead:

https://p.libren.ms/view/raw/d23ae0fb

@sorribes22
Copy link
Contributor Author

A lot of thanks for your help @laf. Is merging blocked until I sign as "axsor"? Because I will need to change github username now. If is necessary I will do it temporary.

@laf
Copy link
Member

laf commented Apr 6, 2018

Yes it is but if you squash your commit to use the first name then it will be fine.

@sorribes22
Copy link
Contributor Author

I close and reopen de pull request because I can't resolve it...

@sorribes22 sorribes22 closed this Apr 6, 2018
@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@sorribes22
Copy link
Contributor Author

Really...

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants