slight changes to the updating process to restart after such an event
This commit is contained in:
+8
-1
@@ -2477,6 +2477,7 @@ def _upload_excel_items(scope='inventory'):
|
||||
parent_item_id=parent_item_id,
|
||||
isbn=row['isbn'],
|
||||
item_type=row['item_type'],
|
||||
is_library=False
|
||||
)
|
||||
if not item_id:
|
||||
import_errors.append((row['row_number'], 'Fehler beim Anlegen des Artikels'))
|
||||
@@ -5133,6 +5134,8 @@ def upload_item():
|
||||
if 'username' not in session:
|
||||
return jsonify({'success': False, 'message': 'Nicht angemeldet'}), 401
|
||||
|
||||
item_is_library = False
|
||||
|
||||
# Check if user may insert items
|
||||
username = session['username']
|
||||
permissions = _get_current_user_permissions() or us.build_default_permission_payload('standard_user')
|
||||
@@ -5177,6 +5180,9 @@ def upload_item():
|
||||
item_type_input = sanitize_form_value(request.form.get('item_type_input', ''))
|
||||
library_category = sanitize_form_value(request.form.get('library_category', ''))
|
||||
|
||||
if library_caregory != '':
|
||||
item_is_library = True
|
||||
|
||||
try:
|
||||
item_count = int(item_count_raw) if item_count_raw else 1
|
||||
except (TypeError, ValueError):
|
||||
@@ -6063,7 +6069,8 @@ def upload_item():
|
||||
parent_item_id=parent_item_id,
|
||||
isbn=item_isbn,
|
||||
item_type=item_type,
|
||||
library_category=library_category
|
||||
library_category=library_category,
|
||||
is_library=item_is_library
|
||||
)
|
||||
if not item_id:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user