Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 07ce6041 authored by Miha Petkovsek's avatar Miha Petkovsek Committed by GitHub
Browse files

Merge pull request #1669 from pmcnabb/location-name-size

Further fix #1381 - Location name 1+ characters
parents e92b3345 7ac6eba5
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ if($_POST['action']=="delete" || $_POST['action']=="edit") { ...@@ -29,7 +29,7 @@ if($_POST['action']=="delete" || $_POST['action']=="edit") {
} }
if($_POST['action']=="add" || $_POST['action']=="edit") { if($_POST['action']=="add" || $_POST['action']=="edit") {
// name // name
if(strlen($_POST['name'])<2) { $Result->show("danger", _("Name must have at least 2 characters"), true); } if(strlen($_POST['name'])<1) { $Result->show("danger", _("Name must have at least 1 character"), true); }
// lat, long // lat, long
if($_POST['action']!=="delete") { if($_POST['action']!=="delete") {
// lat // lat
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment