Skip to content
Snippets Groups Projects
Commit c61bb2e9 authored by ynerant's avatar ynerant
Browse files

When we credit the note of a club directly, fill the last name and the first...

When we credit the note of a club directly, fill the last name and the first name information with the club name instead of empty
parent 4b12e3ed
No related branches found
No related tags found
1 merge request!133Various fixes
...@@ -67,7 +67,11 @@ $(document).ready(function () { ...@@ -67,7 +67,11 @@ $(document).ready(function () {
last.quantity = 1 last.quantity = 1
if (!last.note.user) { if (last.note.club) {
$('#last_name').val(last.note.name)
$('#first_name').val(last.note.name)
}
else if (!last.note.user) {
$.getJSON('/api/note/note/' + last.note.id + '/?format=json', function (note) { $.getJSON('/api/note/note/' + last.note.id + '/?format=json', function (note) {
last.note.user = note.user last.note.user = note.user
$.getJSON('/api/user/' + last.note.user + '/', function (user) { $.getJSON('/api/user/' + last.note.user + '/', function (user) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment