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

Fixed alias research

parent 8c795c38
No related branches found
No related tags found
1 merge request!57Page de consommations
Pipeline #7940 passed with stages
in 4 minutes and 3 seconds
......@@ -6,7 +6,7 @@ from django import forms
from django.utils.translation import gettext_lazy as _
from .models import Alias
from .models import Transaction, TransactionTemplate
from .models import TransactionTemplate
class AliasForm(forms.ModelForm):
......
......@@ -46,7 +46,7 @@ function refreshBalance() {
function getMatchedNotes(pattern, fun) {
getJSONSync("/api/note/alias/?format=json&alias=" + pattern + "&search=user|club&ordering=normalized_name", function(aliases) {
aliases.results.forEach(function(alias) {
fun(alias, alias.note);
fun(alias.note, alias);
});
});
}
......
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