Browse Source

This gets volunteer history select working correctly.

devel
Jonathan Rosenbaum 7 years ago
parent
commit
f95f2d2b2c
  1. 7
      js/transaction.js
  2. 2
      json/transaction.php

7
js/transaction.js

@ -1016,7 +1016,12 @@ $(function() {
sold_to = $("#sold_to").val();
} else {
sold_to = $("[name='sold_to']").val();
}
}
// Volunteer History query
$.post("json/transaction.php",{ volunteer_history_select: 1, contact_id: sold_to }, function(data) {
});
var payment_type_group = $("input[name='payment_type']"), payment_type, check_number;
if (payment_type_group.length) {

2
json/transaction.php

@ -268,7 +268,7 @@ $stand_time_value = STAND_TIME_VALUE;
$query = 'SELECT volunteer FROM contacts WHERE contact_id="' . $_POST['contact_id'] . '";';
$sql = mysql_query($query, $YBDB) or die(mysql_error());
$result = mysql_fetch_assoc($sql);
if ($result['history'] == "") {
if ($result['volunteer'] == "") {
echo "First Volunteer History";
} else {
// Description may have newlines

Loading…
Cancel
Save