Merge pull request #937 from SchrodingersGat/dynamic-form-fixes

Dynamic form fixes
This commit is contained in:
Oliver 2020-08-27 08:47:21 +10:00 committed by GitHub
commit 2c1d585f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,7 @@ function setFieldOptions(fieldName, optionList, options={}) {
if (addEmptyOption) {
// Add an 'empty' option at the top of the list
field.append(makeOption('---------', '', '---------'));
field.append(`<option value="">---------</option>`);
}
optionList.forEach(function(option) {

View File

@ -205,6 +205,7 @@
$('#item-create').click(function () {
createNewStockItem({
follow: true,
data: {
{% if location %}
location: {{ location.id }}