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) { if (addEmptyOption) {
// Add an 'empty' option at the top of the list // Add an 'empty' option at the top of the list
field.append(makeOption('---------', '', '---------')); field.append(`<option value="">---------</option>`);
} }
optionList.forEach(function(option) { optionList.forEach(function(option) {

View File

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