fetchPromotion()

in frontend/src/controllers/PromotionFormController.es6 [63:76]


    fetchPromotion(uuid) {
        let self = this;
        this.service.get(uuid)
            .then(this.transformDates.bind(self))
            .then(this.fillCampaignInfo.bind(self))
            .then(p => {
                if (this.$scope.createPromotionCopy) {
                    return this.copyPromotion(p);
                }

                return { ...p };
            })
            .then(p => this.$scope.promotion = p)
    }