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

Dynamic form fixes
This commit is contained in:
Oliver authored and GitHub committed 2020-08-27 08:47:21 +10:00
commit 2c1d585f8b
2 files changed
+2 -1

No files matched your search

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