Skip to content

Commit f2770f0

Browse files
Url fix 2 (#9548) (#9550)
* Logic fix * Playwright test * Revert "Playwright test" This reverts commit a63b239. * Simplify test * Cleanup test
1 parent 8651384 commit f2770f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/InvenTree/InvenTree/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def run_validation(self, data=empty):
3838

3939
if not strict_urls and data is not empty and data is not None:
4040
data = str(data).strip()
41-
if '://' not in data:
41+
if data and '://' not in data:
4242
# Validate as if there were a schema provided
4343
data = 'http://' + data
4444

0 commit comments

Comments
 (0)