mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #937 from SchrodingersGat/dynamic-form-fixes
Dynamic form fixes
This commit is contained in:
commit
2c1d585f8b
@ -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) {
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user