Skip to content

Commit

Permalink
renamed new field to contact_note
Browse files Browse the repository at this point in the history
  • Loading branch information
Rivnefish committed Jun 16, 2015
1 parent 605d910 commit 733306a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fish-map/fish_map_add_place.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ private function saveMarker()
'lat' => $_POST['lat'],
'lng' => $_POST['lng'],
'permit' => $_POST['permit'],
'contact' => preg_replace('/[^\d]/', '', strip_tags($_POST['contact'])),
'contact_note' => strip_tags($_POST['contact_note']),
'contact' => preg_replace('/[^\d]/', '', ($_POST['contact'])),
'contact_name' => strip_tags($_POST['contact_name']),
'paid_fish' => strip_tags($_POST['paid_fish']),

// additional info
Expand Down
1 change: 1 addition & 0 deletions fish-map/js/fish-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ function showInfoWindow(marker) {
var name = markerInfo["name"];
var payment = markerInfo["paid_fish"] ? markerInfo["paid_fish"] : "-";
var contact = markerInfo["contact"] ? markerInfo["contact"] : "-";
var contact_name = markerInfo["contact_name"] ? markerInfo["contact_name"] : "-";
var photo1 = markerInfo["photo_url1"];
var photo2 = markerInfo["photo_url2"];
var photo3 = markerInfo["photo_url3"];
Expand Down
2 changes: 1 addition & 1 deletion fish-map/tpls/add_place_form.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<div class="one_half last">
<label for="marker_contact">Контактна особа</label>
<input id="marker_contact" type="text"
name="contact_note"
name="contact_name"
class="qtip-info"
data-qtip="ім'я охоронця чи власника, щоб замовити місце, розпитати і т.п." />
</div>
Expand Down
2 changes: 1 addition & 1 deletion fish-map/tpls/marker_info.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<strong>Оплата:</strong> <?php echo $marker["paid_fish"] ? htmlspecialchars($marker["paid_fish"]) : '-'; ?>
</div>
<div class="marker-info-item">
<strong>Контактний телефон:</strong> <?php echo $marker["contact"] ? htmlspecialchars($marker["contact"]) : '-'; ?> <?php echo $marker["contact_note"] ? htmlspecialchars($marker["contact_note"]) : ''; ?>
<strong>Контактний телефон:</strong> <?php echo $marker["contact"] ? htmlspecialchars($marker["contact"]) : '-'; ?> <?php echo $marker["contact_name"] ? htmlspecialchars($marker["contact_name"]) : ''; ?>
</div>
<hr>
<div class="marker-info-item">
Expand Down

0 comments on commit 733306a

Please sign in to comment.