mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
Fix #1623 Can not display empty admin fields list
This commit is contained in:
@@ -28,7 +28,7 @@ define([
|
||||
this.itemViews = [];
|
||||
|
||||
// force base 1 indexed
|
||||
if (this.collection.first().get("sorter") === 0) {
|
||||
if (this.collection.length > 0 && this.collection.first().get("sorter") === 0) {
|
||||
this.collection.each(function (model) {
|
||||
model.set({'sorter': model.get("sorter") + 1}, {silent: true});
|
||||
});
|
||||
|
Reference in New Issue
Block a user