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.
This commit is contained in:
git@daemon.de
2013-09-13 08:09:19 +02:00
parent b8df33061b
commit 81aa7e83e4
4 changed files with 5 additions and 11 deletions

8
TODO
View File

@@ -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.

View File

@@ -3288,7 +3288,7 @@ Index=Source=null;return callback&&getClass.call(callback)==functionClass?walk((
if(isLoader){define(function(){return JSON3;});}}(this));</script> if(isLoader){define(function(){return JSON3;});}}(this));</script>
<script type="text/javascript"> <script type="text/javascript">
/* js from js/libs/version.js */ /* js from js/libs/version.js */
var VERSION="2013-09-12-232232"</script> var VERSION="2013-09-13-080748"</script>
<script type="text/javascript"> <script type="text/javascript">
/* js from js/init.js */ /* js from js/init.js */
App=Ember.Application.create({});$(document).ready(function(){$('.popup-marker').popover({html:true,trigger:'hover'}).click(function(e){$('.popup-marker').not(this).popover('hide');$(this).popover('toggle');});$(document).click(function(e){if(!$(e.target).is('.popup-marker, .popover-title, .popover-content')){$('.popup-marker').popover('hide');}});});</script> App=Ember.Application.create({});$(document).ready(function(){$('.popup-marker').popover({html:true,trigger:'hover'}).click(function(e){$('.popup-marker').not(this).popover('hide');$(this).popover('toggle');});$(document).click(function(e){if(!$(e.target).is('.popup-marker, .popover-title, .popover-content')){$('.popup-marker').popover('hide');}});});</script>
@@ -3374,7 +3374,8 @@ return JSON.stringify({id:this.get('id'),name:this.get('name'),uri:this.get('uri
<script type="text/javascript"> <script type="text/javascript">
/* js from js/store.js */ /* js from js/store.js */
App.store=DS.Store.createWithMixins({revision:12,adapter:DS.LSAdapter.create({namespace:'digiproof'}),init:function(){this._super();this.loadMany(App.Import,[{'id':0,'importdata':''}]);if(lang==='de'){this.loadMany(App.Order,[{'id':0,'name':'weiter zu betreiben'},{'id':1,'name':'zu kündigen'},{'id':2,'name':'zu übertragen'},{'id':3,'name':'nach Gutdünken abzuwickeln'},]);this.loadMany(App.Successor,[{'id':0,'name':'Mein(e) regulären Erbe(n)'}]);} App.store=DS.Store.createWithMixins({revision:12,adapter:DS.LSAdapter.create({namespace:'digiproof'}),init:function(){this._super();this.loadMany(App.Import,[{'id':0,'importdata':''}]);if(lang==='de'){this.loadMany(App.Order,[{'id':0,'name':'weiter zu betreiben'},{'id':1,'name':'zu kündigen'},{'id':2,'name':'zu übertragen'},{'id':3,'name':'nach Gutdünken abzuwickeln'},]);this.loadMany(App.Successor,[{'id':0,'name':'Mein(e) regulären Erbe(n)'}]);}
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)'}]);}}});</script> 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();}});</script>
<script type="text/javascript"> <script type="text/javascript">
/* js from js/router.js */ /* js from js/router.js */
App.Router.map(function(){this.resource('assets',function(){this.route('asset',{path:':asset_id'});this.route('new');});this.resource('successors',function(){this.route('successor',{path:':successor_id'});this.route('new');});this.route('self');this.route('testament');this.route('about');this.resource('data',function(){this.route('export');this.route('import');});});App.AssetsRoute=Ember.Route.extend({model:function(){return App.Asset.find();}});App.SelfRoute=Ember.Route.extend({setupController:function(controller){controller.set('model',App.Self.find(0));}});App.DataImportRoute=Ember.Route.extend({setupController:function(controller){controller.set('model',App.Import.find(0));}});App.SuccessorsRoute=Ember.Route.extend({model:function(){return App.Successor.find();}});</script> App.Router.map(function(){this.resource('assets',function(){this.route('asset',{path:':asset_id'});this.route('new');});this.resource('successors',function(){this.route('successor',{path:':successor_id'});this.route('new');});this.route('self');this.route('testament');this.route('about');this.resource('data',function(){this.route('export');this.route('import');});});App.AssetsRoute=Ember.Route.extend({model:function(){return App.Asset.find();}});App.SelfRoute=Ember.Route.extend({setupController:function(controller){controller.set('model',App.Self.find(0));}});App.DataImportRoute=Ember.Route.extend({setupController:function(controller){controller.set('model',App.Import.find(0));}});App.SuccessorsRoute=Ember.Route.extend({model:function(){return App.Successor.find();}});</script>

View File

@@ -1 +1 @@
var VERSION = "2013-09-11-232202" var VERSION = "2013-09-13-080748"

View File

@@ -29,5 +29,6 @@ App.store = DS.Store.createWithMixins({
); );
this.loadMany(App.Successor, [{ 'id': 0, 'name': 'My regular legal succesor(s)' }]); this.loadMany(App.Successor, [{ 'id': 0, 'name': 'My regular legal succesor(s)' }]);
} }
this.commit();
} }
}); });