Fixed single quotes problem in all pickers (fixes #264)

This commit is contained in:
Bernd Bestel
2019-06-09 09:06:44 +02:00
parent a56f8be19e
commit 825be63b93
5 changed files with 9 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ $('.location-combobox').combobox({
var prefillByName = Grocy.Components.LocationPicker.GetPicker().parent().data('prefill-by-name').toString();
if (typeof prefillByName !== "undefined")
{
possibleOptionElement = $("#location_id option:contains('" + prefillByName + "')").first();
possibleOptionElement = $("#location_id option:contains(\"" + prefillByName + "\")").first();
if (possibleOptionElement.length > 0)
{