Another lettuce test, and fixes to make it work
This commit is contained in:
@@ -85,7 +85,7 @@ CMS.Models.Textbook = Backbone.AssociatedModel.extend({
|
||||
invalidChapters.push(chapter);
|
||||
}
|
||||
});
|
||||
if(invalidChapters) {
|
||||
if(!_.isEmpty(invalidChapters)) {
|
||||
return {
|
||||
message: "All chapters must have a name and asset",
|
||||
attributes: {chapters: invalidChapters}
|
||||
|
||||
Reference in New Issue
Block a user