Hotfix/s33 script errors

Thanks for tracking that down, Anže.


On Tue, Jul 29, 2014 at 1:30 PM, Anže Pečar <notifications@github.com>
wrote:

> In src/ggrc_workflows/assets/javascripts/models/helpers.js:
>
> > @@ -15,6 +15,15 @@ can.Observe("CMS.ModelHelpers.CycleTask", {
> >    },
> >    save : function() {
> >      var that = this;
> > +    // FIXME: temporary fix for 'Could not get any raw data while
> > +    // converting using .models'
> > +    this._data.owners = $.map(this._data.owners, function(owner){
> > +      return {
> > +        id: owner.id,
> > +        type: owner.type,
> > +      };
> > +    });
>
> This was the bug that made @bmomberger-reciprocity
> <https://github.com/bmomberger-reciprocity> made the breaking change in
> cacheable.js. I tired making doing this._data.owners = new
> can.List(this._data.owners); but I was still getting a script error
> mentioned in the comment above the code.
>
> Pressed for time (I was trying to unblock Kostya asap) I came up with this
> 'solution'.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/reciprocity/ggrc-core/pull/1592/files#r15538506>.
>