var shown = this.has_been_loaded;
if (options.reload !== false || !this.datarecord.id) {
shown = shown.then(function() {
- if (self.dataset.index === null) {
+ if (self.dataset.index === null || !self.datarecord.id) {
// null index means we should start a new record
return self.on_button_new();
}