Rillke has uploaded a new change for review.
https://gerrit.wikimedia.org/r/75597
Change subject: Default value for lon and lat from 0 to empty String
......................................................................
Default value for lon and lat from 0 to empty String
Otherwise a location template is added with |0|0 coordinates (yeah! they
are valid) to each uploaded file if the user did not clear the input
fields that are hidden by default.
There is no point in setting them to 0.
Regression introduced in 4a530c4b7341b9bb8409b194469f594f24fb5548
Bug: 51879
Change-Id: I1c3ddca19f36a7910f587a66f95b53d9facf4449
---
M UploadWizard.config.php
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/97/75597/1
diff --git a/UploadWizard.config.php b/UploadWizard.config.php
index e0fb8ca..ceb0318 100644
--- a/UploadWizard.config.php
+++ b/UploadWizard.config.php
@@ -144,13 +144,13 @@
'description' => '',
// Initial value for the latitude field.
- 'lat' => 0,
+ 'lat' => '',
// Initial value for the longitude field.
- 'lon' => 0,
+ 'lon' => '',
// Initial value for the altitude field.
- 'alt' => 0,
+ 'alt' => '',
),
// 'uwLanguages' is a list of languages and codes, for use in the
description step.
--
To view, visit https://gerrit.wikimedia.org/r/75597
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1c3ddca19f36a7910f587a66f95b53d9facf4449
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Rillke <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits