Fixed issue 103, discount code mail body and subject is only updated when generating new code.
Fixed issue 103, discount code mail body and subject is only updated when generating new code.

This commit fixes issue 103 by adding new block in saveChanges method of DiscountCode class in frontend. Save changes method now checks if new codes are saved and sended, thus updating email subject and text to current value.

Before this commit only way to change email content was to regenerate codes.

teekkarispeksi/nappikauppa2,teekkarispeksi/nappikauppa2,teekkarispeksi/nappikauppa2,teekkarispeksi/nappikauppa2