From 81aa7e83e480e6c13708fb08352e4c0c3c85751d Mon Sep 17 00:00:00 2001 From: "git@daemon.de" Date: Fri, 13 Sep 2013 08:09:19 +0200 Subject: [PATCH] bugfix: an asset associated to default successor didn't appear in the printout. cause: the default successor (id=0) is loaded on startup (kind of a fixture) but it wasn't comitted and therefore the hasMany property wasn't updated when the asset were saved. --- TODO | 8 -------- digiproof.html | 5 +++-- js/libs/version.js | 2 +- js/store.js | 1 + 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/TODO b/TODO index 0baede0..e69de29 100644 --- a/TODO +++ b/TODO @@ -1,8 +0,0 @@ -- wenn man beim Neuanlegen eines Assets die beiden - Selects (Successor und Order) so lässt wie sie sind, - wird null eingetragen, das Asset taucht nicht im - Testament auf, successor.has_assets returned 0 - und das bleibt auch so, wenn man das Asset nach- - träglich ändert. - - Supposed Fix: Validate New Asset order+successor. \ No newline at end of file diff --git a/digiproof.html b/digiproof.html index c3f7ae5..ecf53db 100644 --- a/digiproof.html +++ b/digiproof.html @@ -3288,7 +3288,7 @@ Index=Source=null;return callback&&getClass.call(callback)==functionClass?walk(( if(isLoader){define(function(){return JSON3;});}}(this)); +var VERSION="2013-09-13-080748" @@ -3374,7 +3374,8 @@ return JSON.stringify({id:this.get('id'),name:this.get('name'),uri:this.get('uri +else{this.loadMany(App.Order,[{'id':0,'name':'maintain'},{'id':1,'name':'liquidate'},{'id':2,'name':'transfer'},{'id':3,'name':'decide herself'},]);this.loadMany(App.Successor,[{'id':0,'name':'My regular legal succesor(s)'}]);} +this.commit();}}); diff --git a/js/libs/version.js b/js/libs/version.js index 674422e..0d2c708 100644 --- a/js/libs/version.js +++ b/js/libs/version.js @@ -1 +1 @@ -var VERSION = "2013-09-11-232202" +var VERSION = "2013-09-13-080748" diff --git a/js/store.js b/js/store.js index 06ca6c3..15c2743 100644 --- a/js/store.js +++ b/js/store.js @@ -29,5 +29,6 @@ App.store = DS.Store.createWithMixins({ ); this.loadMany(App.Successor, [{ 'id': 0, 'name': 'My regular legal succesor(s)' }]); } + this.commit(); } });